app/Http/Requests/updateProfile.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 [
            "fullName"=> 'required',
            "address"=> 'required',
            "city"=>'required',
            "postcode"=> 'required',
            "emailAddress"=> 'required|email|unique:users,emailAddress',
            "password"=> 'nullable|min:6',
            "confirmPassword"=> 'same:password',
        ];
    }
public function rules ( ) { return [ " fullName " => 'required' , " address " => 'required' , " city " => 'required' , " postcode " => 'required' , " emailAddress " => 'required|email|unique:users,emailAddress' , " password " => 'nullable|min:6' , " confirmPassword " => 'same:password' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .