app/Http/Requests/UpdateUserPut.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name' => 'required|string|max:255',
            'surname' => 'required|string|max:255',
            'email' => 'required|string|email|max:255|unique:users,email,'.$this->route('user')->id,
        ];
    }
public function rules ( ) { return [ 'name' => 'required|string|max:255' , 'surname' => 'required|string|max:255' , 'email' => 'required|string|email|max:255|unique:users,email,' . $ this -> route ( 'user' ) -> id , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .