Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

reisnobre's avatar

While trying to login I'm getting Method Illuminate\\Http\\Request::validate does not exist.

While trying to login, I'm getting Method Illuminate\\Http\\Request::validate does not exist.. I'm on Laravel 8, but it's a really old project, so it could be that some dependency is wrong maybe.

To be able to login I had to go to vendor/laravel/ui/auth-backend/AuthenticatesUsers.php and comment the validateLogin function contents to be able to login myself. The main issue is that for some reason, use Illuminate\Http\Request; seems to not have the validate method. Any ideas on what could be causing this?

0 likes
3 replies
reisnobre's avatar

I'm also having a weird behaviour where on the nova-notifications request it returns Call to a member function getKey() on null, this is being caused by vendor/laravel/nova/src/Http/Controllers/NotificationIndexController.php line 19, and then src/Http/Requests/NotificationRequest.php where on line 17 $this->user() returns null for some reason.

reisnobre's avatar

Another weird behaviour that I'm having is that I'm able to register resources, but when trying to view the resources page I'm getting a 404 page instead

reisnobre's avatar
reisnobre
OP
Best Answer
Level 1

Found the solution, it was a missing Illuminate\Foundation\Providers\FoundationServiceProvider::class provider on the config/app.php. The project is so old that it didn't have this there

Please or to participate in this conversation.