When using Laravel, always check the version.
You are using Laravel11. However, you are looking at a tutorial for a very old version.
You have to look at the official documentation and official tutorials.
Just use the breeze blade stack.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hello, I hope you guys are good, I'm new to laravel and i have fixed many errors while setting up the laravel environement but this one didn't want to be fixed. So I have this error:'Call to undefined method App\Http\Controllers\Auth\LoginController::middleware()' when I go to the login page. here is the code of LoginController.php:
Please or to participate in this conversation.