What happens when you manually go to /login or /register? Does it load the page correctly?
Is this a new project? What version of Laravel are you running?
(Note: You missed the first quote in your href... href={{ should be href="{{)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
So here's my problem..
I used php artisan make:auth to stub out the scaffolding for user authentication.
I'm trying to navigate to /login via an anchor tag <a href={{ route('login') }}">Login</a> which is currently located in layouts/app.blade.php - route('register) is also having the same problem.
When I run php artisan route:list...
I see...
GET|HEAD login App\Http\Controllers\Auth\LoginController@showLoginForm
GET|HEAD register App\Http\Controllers\Auth\RegisterController@showRegistrationForm
The problem I'm having is that neither of the anchors are bringing me to the login or register views. The page just reloads and I'm stuck on the homepage. Both the login and register views are correctly extending the layouts.app view. I know this is a bit vague but I'm really baffled.
When I hover over the links the url does say /login and /register as expected.
I am getting an error that says "requested page not found"
Please or to participate in this conversation.