38 lines
966 B
PHP
Executable File
38 lines
966 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class DocumentRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'work_address' => $this->work_address,
|
|
'position' => $this->position,
|
|
'license_category' => $this->license_category,
|
|
'identity_doc_name' => $this->identity_doc_name,
|
|
'identity_doc_series' => $this->identity_doc_series,
|
|
'identity_doc_number' => $this->identity_doc_number,
|
|
'identity_doc_date' => $this->identity_doc_date,
|
|
'identity_doc_issuedby' => $this->identity_doc_issuedby
|
|
];
|
|
}
|
|
}
|