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

eralph's avatar

Laravel 8 Maitenance mode with secret does not work

Hi,

I have tried to put my application into maintenance mode using the command php artisan down --secret=123.

But when I try to access my application with the secret key -- testapp.test/123 it does not work. It is showing a Not Found error which I assume that the system is looking for the page.

I tried to generate new Laravel 8 application and set it to maintenance mode with secret key. When I access the new app with the secret key it works fine.

I have checked and compared files that could be involved in the maintenance functionality and everything seems to be in place as far as I checked. I might have missed something or have not checked entirely.

I am not sure what went wrong with my application that it does not work with secret key.

Any help is highly appreciated.

Thank you.

0 likes
2 replies
blaubit's avatar

I've got exactly the same issue. Any help?

Please or to participate in this conversation.