app/Http/Requests/UpdateUserRequest.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 [
            'first_name' => 'required|sometimes|max:30',
            'last_name' => 'required|sometimes|max:40',
            'email' => 'required|sometimes|email|unique:users,email,' . $this->user->id,
        ];
    }
public function rules ( ) { return [ 'first_name' => 'required|sometimes|max:30' , 'last_name' => 'required|sometimes|max:40' , 'email' => 'required|sometimes|email|unique:users,email,' . $ this -> user -> id , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .