This is my Request page: request
{!! \JsValidator::formRequest('App\Http\Requests\Backend\UserRequest', '#my-form') !!}
im trying like this with Laravel JS Validation. But i have some errors like this: errors
I'm using the form like this:
{!! Form::model($user, ['class' => 'form-horizontal form-bordered', 'route' => ['admin.user.update', $user->id], 'method' => 'PATCH', 'id' => 'my-form']) !!}
GET. If a get request is outputting the form, the method is going to be equal toGETeven if the form's method ispost.GETrequest is being used to generate the form. When the js validation package is trying to reach into therulesmethod in your form request object, the method isGET. Try addingcase 'GET':right abovecase 'PUT':.