Path : /var/www/clients/client0/web25/web/app/Http/Requests/Back/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/clients/client0/web25/web/app/Http/Requests/Back/StaffRequest.php |
<?php namespace App\Http\Requests\Back; use App\Models\Staff; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; use Illuminate\Validation\Rule; class StaffRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Auth::check(); } /** * Get the validation rules that apply to the request. * * @return array<string, mixed> */ public function rules() { return [ 'firstName' => ['required', 'string', 'max:255'], 'lastName' => ['required', 'string', 'max:255'], // 'email' => ['email', 'max:255', Rule::unique('staff','email')->ignore($this->staff)], ]; } }