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

alex32's avatar
Level 2

Laravel 12 React | Disable login page

In laravel 11 I used to disable login and registration by changing config/fortify.php I can't find a similar option in laravel 12. Is there a way to achieve the same result in /configwithout changing Controllers, Components and Routes? Thanks

1 like
3 replies
vincent15000's avatar

These options are not Laravel options, but Fortify options.

Have installed Fortify and published its configuation file ?

alex32's avatar
alex32
OP
Best Answer
Level 2

I can't find Fortify in laravel 12 - I've installed the started kit for React.

Then I changed Routes and Components. Problem solved (the hard-way). Thanks

1 like
vincent15000's avatar

@alex32 Like for Laravel 11 and previous versions, in Laravel 12 Fortify isn't installed by default. You need to install Fortify and publish its configuration file, and then you can disable the login and registration views.

https://laravel.com/docs/12.x/fortify

Effectively with the starter kit with React, it doesn't use Fortify.

But your question is about Fortify, no ? So I anwser with Fortify ;).

Please or to participate in this conversation.