app/Http/Requests/UpdateProfileRequest.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|min:2|max:255',
            'last_name'     => 'required|min:2|max:255',
            'email'         => 'required|email|unique:users,email,' . $this->id,
            'image'			=> 'sometimes|image',
        ];
    }
public function rules ( ) { return [ 'first_name' => 'required|min:2|max:255' , 'last_name' => 'required|min:2|max:255' , 'email' => 'required|email|unique:users,email,' . $ this -> id , 'image' => 'sometimes|image' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// https://laravel.com/docs/5.2/validation#available-validation-rules