app/Http/Requests/UserUpdateRequest.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|min:2|max:20',
            'avatar'=>'required',
            'password'=>'min:6|max:20',
            'confirm_password'=>'min:6|max:20',
            'new_password'=>'min:6|max:20|confirmed:confirm_password',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|min:2|max:20' , 'avatar' => 'required' , 'password' => 'min:6|max:20' , 'confirm_password' => 'min:6|max:20' , 'new_password' => 'min:6|max:20|confirmed:confirm_password' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .