update 1.0.7
This commit is contained in:
@@ -30,7 +30,7 @@ class CompanyRequest extends Request
|
||||
{
|
||||
return [
|
||||
'company_name' => 'required',
|
||||
'website' => 'url',
|
||||
'website' => 'active_url',
|
||||
'phone' => 'numeric',
|
||||
'logo' => 'image',
|
||||
];
|
||||
|
@@ -31,7 +31,7 @@ class OrganizationRequest extends Request
|
||||
return [
|
||||
|
||||
'name' => 'required|unique:organization',
|
||||
'website' => 'url',
|
||||
'website' => 'active_url',
|
||||
// 'phone' => 'size:10',
|
||||
];
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ class OrganizationUpdate extends Request
|
||||
{
|
||||
return [
|
||||
|
||||
'website' => 'url',
|
||||
'website' => 'active_url',
|
||||
// 'phone' => 'size:10',
|
||||
];
|
||||
}
|
||||
|
39
app/Http/Requests/helpdesk/WorkflowCreateRequest.php
Normal file
39
app/Http/Requests/helpdesk/WorkflowCreateRequest.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\helpdesk;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* Sys_userRequest.
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class WorkflowCreateRequest extends Request
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'name' => 'required|unique:workflow_name,name',
|
||||
'execution_order' => 'required',
|
||||
'target_channel' => 'required',
|
||||
'rule' => 'required',
|
||||
'action' => 'required',
|
||||
];
|
||||
}
|
||||
}
|
39
app/Http/Requests/helpdesk/WorkflowUpdateRequest.php
Normal file
39
app/Http/Requests/helpdesk/WorkflowUpdateRequest.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\helpdesk;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* Sys_userRequest.
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class WorkflowUpdateRequest extends Request
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'name' => 'required',
|
||||
'execution_order' => 'required',
|
||||
'target_channel' => 'required',
|
||||
'rule' => 'required',
|
||||
'action' => 'required',
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user