| Current Path : /var/www/html/reddsis/app/Http/Requests/Backend/ |
| Current File : /var/www/html/reddsis/app/Http/Requests/Backend/ContentDirectoryStaffRequest.php |
<?php
namespace App\Http\Requests\Backend;
use Illuminate\Foundation\Http\FormRequest;
class ContentDirectoryStaffRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'directory_staff_department_id' => 'nullable|integer|exists:content_directory_departments,directory_department_id',
'directory_staff_name' => 'required|string|max:255',
'directory_staff_email' => 'nullable|email|max:255',
'directory_staff_phone' => 'nullable|string|max:255',
'directory_staff_position' => 'nullable|string|max:255',
'directory_staff_photo' => 'nullable|image|max:2048',
'directory_staff_sort' => 'nullable|integer',
'directory_staff_status' => 'nullable|integer|in:0,1',
];
}
}