update v1.0.3.3
This commit is contained in:
9
app/Http/Requests/Request.php
Normal file
9
app/Http/Requests/Request.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
abstract class Request extends FormRequest {
|
||||
|
||||
//
|
||||
|
||||
}
|
43
app/Http/Requests/helpdesk/AgentRequest.php
Normal file
43
app/Http/Requests/helpdesk/AgentRequest.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* AgentRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class AgentRequest 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 [
|
||||
'user_name' => 'required|unique:users',
|
||||
'first_name' => 'required',
|
||||
'last_name' => 'required',
|
||||
'email' => 'required',
|
||||
'account_type' => 'required',
|
||||
// 'account_status' => 'required',
|
||||
'assign_group' => 'required',
|
||||
'primary_dpt' => 'required',
|
||||
'agent_tzone' => 'required',
|
||||
// 'phone_number' => 'phone:IN',
|
||||
// 'mobile' => 'phone:IN',
|
||||
'team_id' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
42
app/Http/Requests/helpdesk/AgentUpdate.php
Normal file
42
app/Http/Requests/helpdesk/AgentUpdate.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* AgentUpdate
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class AgentUpdate 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 [
|
||||
'first_name' => 'required',
|
||||
'last_name' => 'required',
|
||||
'email' => 'required|email',
|
||||
'account_type' => 'required',
|
||||
'role' => 'required',
|
||||
'assign_group' => 'required',
|
||||
'primary_dpt' => 'required',
|
||||
'agent_tzone' => 'required',
|
||||
'phone_number' => 'phone:IN',
|
||||
'mobile' => 'phone:IN',
|
||||
'team_id' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
27
app/Http/Requests/helpdesk/ArticleRequest.php
Normal file
27
app/Http/Requests/helpdesk/ArticleRequest.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class ArticleRequest 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',
|
||||
'description' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/BanRequest.php
Normal file
33
app/Http/Requests/helpdesk/BanRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* BanRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class BanRequest 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 [
|
||||
'email' => 'required|email|unique:users',
|
||||
'ban' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/BanlistRequest.php
Normal file
33
app/Http/Requests/helpdesk/BanlistRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* BanlistRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class BanlistRequest 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 [
|
||||
'email' => 'email',
|
||||
'ban' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/CannedRequest.php
Normal file
33
app/Http/Requests/helpdesk/CannedRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* AgentRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class CannedRequest 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 [
|
||||
'title' => 'required',
|
||||
'message' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/CannedUpdateRequest.php
Normal file
33
app/Http/Requests/helpdesk/CannedUpdateRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* AgentRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class CannedUpdateRequest 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 [
|
||||
'title' => 'required',
|
||||
'message' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/CheckTicket.php
Normal file
33
app/Http/Requests/helpdesk/CheckTicket.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* CheckTicket
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class CheckTicket 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 [
|
||||
'email' => 'required|email',
|
||||
'ticket_number' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/ClientRequest.php
Normal file
35
app/Http/Requests/helpdesk/ClientRequest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* CompanyRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class ClientRequest 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',
|
||||
'Email'=>'required',
|
||||
'Subject'=>'required',
|
||||
'Details'=>'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
29
app/Http/Requests/helpdesk/CommentRequest.php
Normal file
29
app/Http/Requests/helpdesk/CommentRequest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class CommentRequest 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|max:10',
|
||||
'email' => 'required|email',
|
||||
'website' => 'url',
|
||||
'comment' => 'required|max:60',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/CompanyRequest.php
Normal file
35
app/Http/Requests/helpdesk/CompanyRequest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* CompanyRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class CompanyRequest 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 [
|
||||
'company_name' => 'required',
|
||||
'website' => 'url',
|
||||
'phone' => 'numeric',
|
||||
'logo' => 'image',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
29
app/Http/Requests/helpdesk/ContactRequest.php
Normal file
29
app/Http/Requests/helpdesk/ContactRequest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class ContactRequest 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',
|
||||
'email' => 'required|email',
|
||||
'subject' => 'required',
|
||||
'message' => 'required|max:50',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
40
app/Http/Requests/helpdesk/CreateTicketRequest.php
Normal file
40
app/Http/Requests/helpdesk/CreateTicketRequest.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* CreateTicketRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class CreateTicketRequest 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 [
|
||||
|
||||
'email' => 'required|email',
|
||||
'fullname' => 'required|min:3',
|
||||
'helptopic' => 'required',
|
||||
// 'dept' => 'required',
|
||||
'sla' => 'required',
|
||||
'subject' => 'required|min:5',
|
||||
'body' => 'required|min:20',
|
||||
'priority' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/DepartmentRequest.php
Normal file
35
app/Http/Requests/helpdesk/DepartmentRequest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* DepartmentRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class DepartmentRequest 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:department',
|
||||
// 'outgoing_email' => 'required',
|
||||
// 'auto_response_email' => 'required',
|
||||
// 'group_id' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/DepartmentUpdate.php
Normal file
35
app/Http/Requests/helpdesk/DepartmentUpdate.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* DepartmentUpdate
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class DepartmentUpdate 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 [
|
||||
|
||||
// 'outgoing_email' => 'required',
|
||||
// 'auto_response_email' => 'required',
|
||||
// 'group_id' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/DiagnoRequest.php
Normal file
35
app/Http/Requests/helpdesk/DiagnoRequest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* DiagnoRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class DiagnoRequest 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 [
|
||||
'from' => 'required|email',
|
||||
'to' => 'required|email',
|
||||
'subject' => 'required',
|
||||
'message' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
31
app/Http/Requests/helpdesk/EmailRequest.php
Normal file
31
app/Http/Requests/helpdesk/EmailRequest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* EmailRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class EmailRequest 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 [
|
||||
];
|
||||
}
|
||||
|
||||
}
|
45
app/Http/Requests/helpdesk/EmailsEditRequest.php
Normal file
45
app/Http/Requests/helpdesk/EmailsEditRequest.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* EmailsEditRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class EmailsEditRequest 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 [
|
||||
'email_address' => 'email',
|
||||
'email_name' => 'required',
|
||||
'department' => 'required',
|
||||
'priority' => 'required',
|
||||
'help_topic' => 'required',
|
||||
// 'imap_config' => 'required',
|
||||
'password' => 'required|min:6',
|
||||
'user_name' => 'required',
|
||||
// 'sending_host' => 'required',
|
||||
// 'sending_port' => 'required',
|
||||
//'mailbox_protocol' => 'required'
|
||||
'fetching_host' => 'required',
|
||||
'fetching_port' => 'required',
|
||||
'mailbox_protocol' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
44
app/Http/Requests/helpdesk/EmailsRequest.php
Normal file
44
app/Http/Requests/helpdesk/EmailsRequest.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* EmailsRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class EmailsRequest 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 [
|
||||
'email_address' => 'required|email|unique:emails',
|
||||
'email_name' => 'required',
|
||||
'department' => 'required',
|
||||
'priority' => 'required',
|
||||
'help_topic' => 'required',
|
||||
// 'imap_config' => 'required',
|
||||
'password' => 'required|min:6',
|
||||
'user_name' => 'required',
|
||||
// 'sending_host' => 'required',
|
||||
// 'sending_port' => 'required',
|
||||
'fetching_host' => 'required',
|
||||
'fetching_port' => 'required',
|
||||
'mailbox_protocol' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
36
app/Http/Requests/helpdesk/FormRequest.php
Normal file
36
app/Http/Requests/helpdesk/FormRequest.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* FormRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class FormRequest 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 [
|
||||
|
||||
'title' => 'required',
|
||||
'label' => 'required',
|
||||
'type' => 'required',
|
||||
'visibility' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
32
app/Http/Requests/helpdesk/GroupRequest.php
Normal file
32
app/Http/Requests/helpdesk/GroupRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* GroupRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class GroupRequest 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:groups',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
38
app/Http/Requests/helpdesk/HelptopicRequest.php
Normal file
38
app/Http/Requests/helpdesk/HelptopicRequest.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* HelptopicRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class HelptopicRequest 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 [
|
||||
'topic' => 'required|unique:help_topic',
|
||||
// 'parent_topic' => 'required',
|
||||
// 'custom_form' => 'required',
|
||||
'department' => 'required',
|
||||
'priority' => 'required',
|
||||
'sla_plan' => 'required',
|
||||
// 'auto_assign' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
37
app/Http/Requests/helpdesk/HelptopicUpdate.php
Normal file
37
app/Http/Requests/helpdesk/HelptopicUpdate.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* HelptopicUpdate
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class HelptopicUpdate 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 [
|
||||
// 'parent_topic' => 'required',
|
||||
// 'custom_form' => 'required',
|
||||
'department' => 'required',
|
||||
'priority' => 'required',
|
||||
'sla_plan' => 'required',
|
||||
// 'auto_assign' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
37
app/Http/Requests/helpdesk/InstallerRequest.php
Normal file
37
app/Http/Requests/helpdesk/InstallerRequest.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* InstallerRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class InstallerRequest 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 [
|
||||
'firstname' => 'required|max:20',
|
||||
'Lastname' => 'required|max:20',
|
||||
'email' => 'required|max:50|email',
|
||||
'username' => 'required|max:50|min:3',
|
||||
'password' => 'required|min:6',
|
||||
'confirmpassword' => 'required|same:password',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/LoginRequest.php
Normal file
33
app/Http/Requests/helpdesk/LoginRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* LoginRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class LoginRequest 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 [
|
||||
'email' => 'required|email',
|
||||
'password' => 'required|min:6',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/MessageRequest.php
Normal file
33
app/Http/Requests/helpdesk/MessageRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class MessageRequest 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 [
|
||||
|
||||
|
||||
'message_title' => 'required',
|
||||
'message' => 'required'
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/OrganizationRequest.php
Normal file
35
app/Http/Requests/helpdesk/OrganizationRequest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* OrganizationRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class OrganizationRequest 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:organization',
|
||||
'website' => 'url',
|
||||
// 'phone' => 'size:10',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
34
app/Http/Requests/helpdesk/OrganizationUpdate.php
Normal file
34
app/Http/Requests/helpdesk/OrganizationUpdate.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* OrganizationUpdate
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class OrganizationUpdate 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 [
|
||||
|
||||
'website' => 'url',
|
||||
// 'phone' => 'size:10',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
34
app/Http/Requests/helpdesk/ProfilePassword.php
Normal file
34
app/Http/Requests/helpdesk/ProfilePassword.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* ProfilePassword
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class ProfilePassword 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 [
|
||||
'old_password' => 'required',
|
||||
'new_password' => 'required|min:6',
|
||||
'confirm_password' => 'required|same:new_password',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/ProfileRequest.php
Normal file
33
app/Http/Requests/helpdesk/ProfileRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* ProfileRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class ProfileRequest 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 [
|
||||
'first_name' => 'required',
|
||||
'profile_pic' => 'mimes:png,jpeg',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/RegisterRequest.php
Normal file
35
app/Http/Requests/helpdesk/RegisterRequest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* RegisterRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class RegisterRequest 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 [
|
||||
'email' => 'required|max:50|email|unique:users',
|
||||
'full_name' => 'required',
|
||||
'password' => 'required|min:6',
|
||||
'password_confirmation' => 'required|same:password',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/SlaRequest.php
Normal file
33
app/Http/Requests/helpdesk/SlaRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* SlaRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class SlaRequest 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:sla_plan',
|
||||
'grace_period' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
32
app/Http/Requests/helpdesk/SlaUpdate.php
Normal file
32
app/Http/Requests/helpdesk/SlaUpdate.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* SlaUpdate
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class SlaUpdate 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 [
|
||||
'grace_period' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
37
app/Http/Requests/helpdesk/SmtpRequest.php
Normal file
37
app/Http/Requests/helpdesk/SmtpRequest.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* TicketForm
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class SmtpRequest 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 [
|
||||
'host' => 'required',
|
||||
'port' => 'required',
|
||||
'encryption' => 'required',
|
||||
'name' => 'required',
|
||||
'email' => 'required',
|
||||
'password' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/Sys_userRequest.php
Normal file
35
app/Http/Requests/helpdesk/Sys_userRequest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* Sys_userRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class Sys_userRequest 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 [
|
||||
|
||||
'email' => 'required|unique:users,email',
|
||||
'full_name' => 'required',
|
||||
// 'phone' => 'size:10',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
34
app/Http/Requests/helpdesk/Sys_userUpdate.php
Normal file
34
app/Http/Requests/helpdesk/Sys_userUpdate.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* Sys_userUpdate
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class Sys_userUpdate 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 [
|
||||
'user_name' => 'required',
|
||||
// 'email' => 'required|email',
|
||||
// 'phone' => 'size:10',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
34
app/Http/Requests/helpdesk/SystemRequest.php
Normal file
34
app/Http/Requests/helpdesk/SystemRequest.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* SystemRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class SystemRequest 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' => '',
|
||||
'url' => 'url',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
33
app/Http/Requests/helpdesk/TeamRequest.php
Normal file
33
app/Http/Requests/helpdesk/TeamRequest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* TeamRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class TeamRequest 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:teams',
|
||||
'status' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
31
app/Http/Requests/helpdesk/TeamUpdate.php
Normal file
31
app/Http/Requests/helpdesk/TeamUpdate.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* TeamUpdate
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class TeamUpdate 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 [
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/TemplateRequest.php
Normal file
35
app/Http/Requests/helpdesk/TemplateRequest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* TemplateRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class TemplateRequest 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:template',
|
||||
'ban_status' => 'required',
|
||||
'template_set_to_clone' => 'required',
|
||||
'language' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/TemplateUdate.php
Normal file
35
app/Http/Requests/helpdesk/TemplateUdate.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* TemplateUdate
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class TemplateUdate 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 [
|
||||
|
||||
'ban_status' => 'required',
|
||||
'template_set_to_clone' => 'required',
|
||||
'language' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
36
app/Http/Requests/helpdesk/TicketEditRequest.php
Normal file
36
app/Http/Requests/helpdesk/TicketEditRequest.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* AgentRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class TicketEditRequest 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 [
|
||||
// 'subject' => 'required',
|
||||
// 'sla_paln' => 'required',
|
||||
// 'help_topic' => 'required',
|
||||
// 'ticket_source' => 'required',
|
||||
// 'ticket_priority' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
35
app/Http/Requests/helpdesk/TicketForm.php
Normal file
35
app/Http/Requests/helpdesk/TicketForm.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* TicketForm
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class TicketForm 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 [
|
||||
'help_topic' => 'required',
|
||||
'Email' => 'required',
|
||||
'Subject' => 'required',
|
||||
'Detail' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
34
app/Http/Requests/helpdesk/TicketRequest.php
Normal file
34
app/Http/Requests/helpdesk/TicketRequest.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php namespace App\Http\Requests\helpdesk;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* TicketRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class TicketRequest 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 [
|
||||
// 'To' => 'required',
|
||||
'ticket_ID' => 'required',
|
||||
'ReplyContent' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/kb/ArticleRequest.php
Normal file
30
app/Http/Requests/kb/ArticleRequest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class ArticleRequest 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',
|
||||
'slug' => 'required|unique:article',
|
||||
'description' => 'required',
|
||||
'category_id' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/kb/ArticleUpdate.php
Normal file
30
app/Http/Requests/kb/ArticleUpdate.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class ArticleUpdate 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',
|
||||
'slug' => 'required',
|
||||
'description' => 'required',
|
||||
'category_id' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/kb/CategoryRequest.php
Normal file
30
app/Http/Requests/kb/CategoryRequest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class CategoryRequest 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',
|
||||
'slug' => 'required|unique:category',
|
||||
'description' => 'required',
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/kb/CategoryUpdate.php
Normal file
30
app/Http/Requests/kb/CategoryUpdate.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class CategoryUpdate 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',
|
||||
'slug' => 'required',
|
||||
'description' => 'required',
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/kb/CommentRequest.php
Normal file
30
app/Http/Requests/kb/CommentRequest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class CommentRequest 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|max:50',
|
||||
'email' => 'required|email',
|
||||
'website' => 'url',
|
||||
'comment' => 'required|max:500',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/kb/ContactRequest.php
Normal file
30
app/Http/Requests/kb/ContactRequest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class ContactRequest 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',
|
||||
'email' => 'required|email',
|
||||
'subject' => 'required|max:20',
|
||||
'message' => 'required|max:60',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
29
app/Http/Requests/kb/FooterRequest.php
Normal file
29
app/Http/Requests/kb/FooterRequest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class FooterRequest 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 [
|
||||
'title' => 'required',
|
||||
//'description' => 'required',
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
37
app/Http/Requests/kb/InstallerRequest.php
Normal file
37
app/Http/Requests/kb/InstallerRequest.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
/**
|
||||
* InstallerRequest
|
||||
*
|
||||
* @package Request
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class InstallerRequest 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 [
|
||||
'firstname' => 'required|max:20',
|
||||
'Lastname' => 'required|max:20',
|
||||
'email' => 'required|max:50|email',
|
||||
'username' => 'required|max:50|min:3',
|
||||
'password' => 'required|min:6',
|
||||
'confirmpassword' => 'required|same:password',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/kb/PageRequest.php
Normal file
30
app/Http/Requests/kb/PageRequest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class PageRequest 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',
|
||||
'slug' => 'required|unique:pages',
|
||||
//'description' => 'required',
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/kb/PageUpdate.php
Normal file
30
app/Http/Requests/kb/PageUpdate.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class PageUpdate 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',
|
||||
'slug' => 'required',
|
||||
//'description' => 'required',
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
31
app/Http/Requests/kb/ProfilePassword.php
Normal file
31
app/Http/Requests/kb/ProfilePassword.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class ProfilePassword 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 [
|
||||
'old_password' => 'required',
|
||||
'new_password' => 'required|min:6',
|
||||
'confirm_password' => 'required|same:new_password'
|
||||
];
|
||||
}
|
||||
|
||||
}
|
29
app/Http/Requests/kb/ProfileRequest.php
Normal file
29
app/Http/Requests/kb/ProfileRequest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class ProfileRequest 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 [
|
||||
'firstname' => 'required',
|
||||
'lastname' => 'required',
|
||||
'profile_pic' => 'mimes:png,jpeg',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
27
app/Http/Requests/kb/SearchRequest.php
Normal file
27
app/Http/Requests/kb/SearchRequest.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class SearchRequest 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 [
|
||||
's' => 'required',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
28
app/Http/Requests/kb/SettingsRequests.php
Normal file
28
app/Http/Requests/kb/SettingsRequests.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class SettingsRequests 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 [
|
||||
// 'company_name' => 'required',
|
||||
// 'website' => 'required|url',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
42
app/Http/Requests/kb/SocialRequest.php
Normal file
42
app/Http/Requests/kb/SocialRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php namespace App\Http\Requests\kb;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class SocialRequest 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 [
|
||||
'linkedin' =>'url',
|
||||
'stumble' =>'url',
|
||||
'google' =>'url',
|
||||
'deviantart' =>'url',
|
||||
'flickr' =>'url',
|
||||
'skype' =>'url',
|
||||
'rss' =>'url',
|
||||
'twitter' =>'url',
|
||||
'facebook' =>'url',
|
||||
'youtube' =>'url',
|
||||
'vimeo' =>'url',
|
||||
'pinterest' =>'url',
|
||||
'dribbble' =>'url',
|
||||
'instagram' =>'url'
|
||||
];
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user