64 lines
1.3 KiB
PHP
64 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class SupportTechnicalRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
// only allow updates if the user is logged in
|
|
//return backpack_auth()->check();
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'name_first' => 'required',
|
|
'name_last' => 'required',
|
|
'company_name' => 'required',
|
|
//'job_title' => 'required',
|
|
'email' => 'nullable|email',
|
|
'phone' => 'required',
|
|
'contry' => 'required',
|
|
'comments' => 'required',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Get the validation attributes that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function attributes()
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Get the validation messages that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function messages()
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
}
|