Support the ongoing development of Laravel.io →
Validation Requests
Last updated 2 years ago.
0

Try this open terminal go to ur project folder and type composer dump-autoload

0

kunalcoder23 said:

Try this open terminal go to ur project folder and type composer dump-autoload

@kunalcoder23,

Tried both composer dump-autoload and artisan cache-clear and no luck.

0
Solution

To anyone stuck as well, this is how I fixed my problem:

Replaced the following in the Service Provider:

$this->validator = $app['validator']->make($app->request->all(), $request->rules(), $request->messages());

With:

$this->validator = Validator::make($app->request->all(), $request->rules(), $request->messages());

And be sure to add the following to the top of the file:

use Validator;

0

Sign in to participate in this thread!

Eventy

Your banner here too?

koufax koufax Joined 23 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.