update v1.0.6

This commit is contained in:
sujitprasad
2016-02-16 22:42:08 +05:30
parent e6b579d67b
commit 073a49a8af
587 changed files with 21487 additions and 22766 deletions

View File

@@ -1,9 +1,9 @@
<?php namespace App\Http\Requests;
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
abstract class Request extends FormRequest {
//
//
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,35 +12,35 @@ use App\Http\Requests\Request;
*/
class AgentRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
'active' => 'required',
// 'account_status' => 'required',
'assign_group' => 'required',
'primary_dpt' => 'required',
'agent_tzone' => 'required',
// 'phone_number' => 'phone:IN',
// 'mobile' => 'phone:IN',
'team_id' => 'required',
];
}
/**
* 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',
'active' => 'required',
// 'account_status' => 'required',
'assign_group' => 'required',
'primary_dpt' => 'required',
'agent_tzone' => 'required',
// 'phone_number' => 'phone:IN',
// 'mobile' => 'phone:IN',
'team_id' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,34 +12,34 @@ use App\Http\Requests\Request;
*/
class AgentUpdate extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
'active' => 'required',
'role' => 'required',
'assign_group' => 'required',
'primary_dpt' => 'required',
'agent_tzone' => 'required',
// 'phone_number' => 'phone:IN',
// 'mobile' => 'phone:IN',
'team_id' => 'required',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'first_name' => 'required',
'last_name' => 'required',
'email' => 'required|email',
'active' => 'required',
'role' => 'required',
'assign_group' => 'required',
'primary_dpt' => 'required',
'agent_tzone' => 'required',
// 'phone_number' => 'phone:IN',
// 'mobile' => 'phone:IN',
'team_id' => 'required',
];
}
}

View File

@@ -1,27 +1,30 @@
<?php namespace App\Http\Requests\helpdesk;
<?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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'description' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ use App\Http\Requests\Request;
*/
class BanRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
'ban' => 'required',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'email' => 'required|email',
'ban' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ use App\Http\Requests\Request;
*/
class BanlistRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'email' => 'email',
'ban' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ use App\Http\Requests\Request;
*/
class CannedRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'title' => 'required',
'message' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ use App\Http\Requests\Request;
*/
class CannedUpdateRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'title' => 'required',
'message' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ use App\Http\Requests\Request;
*/
class CheckTicket extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'email' => 'required|email',
'ticket_number' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class ClientRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'Name' => 'required',
'Email' => 'required',
'Subject' => 'required',
'Details' => 'required',
];
}
}

View File

@@ -1,29 +1,32 @@
<?php namespace App\Http\Requests\helpdesk;
<?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;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class CompanyRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'company_name' => 'required',
'website' => 'url',
'phone' => 'numeric',
'logo' => 'image',
];
}
}

View File

@@ -1,29 +1,32 @@
<?php namespace App\Http\Requests\helpdesk;
<?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;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,32 +12,32 @@ use App\Http\Requests\Request;
*/
class CreateTicketRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
/**
* 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',
];
}
'email' => 'required|email',
'fullname' => 'required|min:3',
'helptopic' => 'required',
// 'dept' => 'required',
'sla' => 'required',
'subject' => 'required|min:5',
'body' => 'required|min:20',
'priority' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class DepartmentRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class DepartmentUpdate extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
/**
* 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',
];
}
// 'outgoing_email' => 'required',
// 'auto_response_email' => 'required',
// 'group_id' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class DiagnoRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,23 +12,23 @@ use App\Http\Requests\Request;
*/
class EmailRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,37 +12,37 @@ use App\Http\Requests\Request;
*/
class EmailsEditRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,36 +12,36 @@ use App\Http\Requests\Request;
*/
class EmailsRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,28 +12,28 @@ use App\Http\Requests\Request;
*/
class FormRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'title' => 'required',
'label' => 'required',
'type' => 'required',
'visibility' => 'required',
];
}
'title' => 'required',
'label' => 'required',
'type' => 'required',
'visibility' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,24 +12,24 @@ use App\Http\Requests\Request;
*/
class GroupRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required|unique:groups',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,30 +12,30 @@ use App\Http\Requests\Request;
*/
class HelptopicRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,29 +12,29 @@ use App\Http\Requests\Request;
*/
class HelptopicUpdate extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,29 +12,29 @@ use App\Http\Requests\Request;
*/
class InstallerRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ use App\Http\Requests\Request;
*/
class LoginRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
'password' => 'required|min:6',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'email' => 'required',
'password' => 'required|min:6',
];
}
}

View File

@@ -1,33 +1,32 @@
<?php namespace App\Http\Requests\helpdesk;
<?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;
}
/**
* 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 [
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'message_title' => 'required',
'message' => 'required'
];
}
'message_title' => 'required',
'message' => 'required'
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class OrganizationRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required|unique:organization',
'website' => 'url',
// 'phone' => 'size:10',
];
}
'name' => 'required|unique:organization',
'website' => 'url',
// 'phone' => 'size:10',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,26 +12,26 @@ use App\Http\Requests\Request;
*/
class OrganizationUpdate extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'website' => 'url',
// 'phone' => 'size:10',
];
}
'website' => 'url',
// 'phone' => 'size:10',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,26 +12,26 @@ 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;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ 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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'first_name' => 'required',
'profile_pic' => 'mimes:png,jpeg',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class RegisterRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ use App\Http\Requests\Request;
*/
class SlaRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required|unique:sla_plan',
'grace_period' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,24 +12,24 @@ use App\Http\Requests\Request;
*/
class SlaUpdate extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'grace_period' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,29 +12,29 @@ use App\Http\Requests\Request;
*/
class SmtpRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class Sys_userRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
/**
* 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',
];
}
'email' => 'required|unique:users,email',
'full_name' => 'required',
// 'phone' => 'size:10',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,26 +12,26 @@ use App\Http\Requests\Request;
*/
class Sys_userUpdate extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'user_name' => 'required',
// 'email' => 'required|email',
// 'phone' => 'size:10',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,26 +12,26 @@ use App\Http\Requests\Request;
*/
class SystemRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => '',
'url' => 'url',
];
}
'name' => '',
'url' => 'url',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,25 +12,25 @@ use App\Http\Requests\Request;
*/
class TeamRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required|unique:teams',
'status' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,23 +12,23 @@ use App\Http\Requests\Request;
*/
class TeamUpdate extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class TemplateRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class TemplateUdate extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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 [
/**
* 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',
];
}
'ban_status' => 'required',
'template_set_to_clone' => 'required',
'language' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,28 +12,28 @@ use App\Http\Requests\Request;
*/
class TicketEditRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,27 +12,27 @@ use App\Http\Requests\Request;
*/
class TicketForm extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'help_topic' => 'required',
'Email' => 'required',
'Subject' => 'required',
'Detail' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\helpdesk;
<?php
namespace App\Http\Requests\helpdesk;
use App\Http\Requests\Request;
/**
@@ -9,26 +12,26 @@ use App\Http\Requests\Request;
*/
class TicketRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
// 'To' => 'required',
'ticket_ID' => 'required',
'ReplyContent' => 'required',
];
}
}

View File

@@ -1,30 +1,32 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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:kb_article',
'description' => 'required',
'category_id' => 'required',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required|unique:kb_article',
'description' => 'required',
'category_id' => 'required',
];
}
}

View File

@@ -1,30 +1,32 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required',
'description' => 'required',
'category_id' => 'required',
];
}
}

View File

@@ -1,30 +1,31 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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:kb_category',
'description' => 'required',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required|unique:kb_category',
'description' => 'required',
];
}
}

View File

@@ -1,30 +1,31 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required',
'description' => 'required',
];
}
}

View File

@@ -1,30 +1,32 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,30 +1,32 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,29 +1,30 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'title' => 'required',
//'description' => 'required',
];
}
}

View File

@@ -1,4 +1,7 @@
<?php namespace App\Http\Requests\kb;
<?php
namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
/**
@@ -9,29 +12,29 @@ use App\Http\Requests\Request;
*/
class InstallerRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* 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',
];
}
/**
* 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',
];
}
}

View File

@@ -1,30 +1,31 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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:kb_pages',
//'description' => 'required',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required|unique:kb_pages',
//'description' => 'required',
];
}
}

View File

@@ -1,30 +1,31 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required',
//'description' => 'required',
];
}
}

View File

@@ -1,31 +1,31 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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'
];
}
/**
* 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'
];
}
}

View File

@@ -1,29 +1,31 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'firstname' => 'required',
'lastname' => 'required',
'profile_pic' => 'mimes:png,jpeg',
];
}
}

View File

@@ -1,27 +1,29 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
's' => 'required',
];
}
}

View File

@@ -1,28 +1,30 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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',
];
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
// 'company_name' => 'required',
// 'website' => 'required|url',
];
}
}

View File

@@ -1,42 +1,42 @@
<?php namespace App\Http\Requests\kb;
<?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;
}
/**
* 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'
];
}
/**
* 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'
];
}
}