app/Http/Requests/ProfileRequest.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|max:255',
            'last_name'=>'required|max:255',
            'phone'=>'required|max:15',
            'address'=>'required|max:255',
            'city'=>'required|max:50',
            'state'=>'required|max:3',
            'zip'=>'required|max:10'
        ];
    }
public function rules ( ) { return [ 'name' => 'required|max:255' , 'last_name' => 'required|max:255' , 'phone' => 'required|max:15' , 'address' => 'required|max:255' , 'city' => 'required|max:50' , 'state' => 'required|max:3' , 'zip' => 'required|max:10' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .