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/UserRequest.php |
<?php namespace App\Http\Requests\Back; use Illuminate\Foundation\Http\FormRequest; class UserRequest extends FormRequest { /** * 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<string, mixed> */ public function rules() { $id = basename($this->url()); return $rules = [ 'name' => 'required|max:255|unique:users,name,' . $id, 'email' => 'required|email|max:255|unique:users,email,' . $id ]; } }