app/Http/Requests/UserRequest.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:4',
            'email'     => 'required|email|unique:users',
            'password'  => 'required|min:6',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|min:4' , 'email' => 'required|email|unique:users' , 'password' => 'required|min:6' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .