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

ilex01's avatar

Cannot authenticate users in Laravel in production

I cannot authenticate users in Laravel.

I've tried the following command: php artisan make:auth but the Command "make:auth" is not defined.

Registration works correctly though.

0 likes
6 replies
ilex01's avatar

@jaseofspades88 I did the necessary for the authentication. That is to say:

composer require laravel/ui --dev
php artisan ui bootstrap --auth
npm install && npm run dev

But they can't still login.

ilex01's avatar

Be carefull, I wanted to say they can't still login instead of they can't still register.

ilex01's avatar

What is strange, is that autentication works perfectly on local wamp.

ilex01's avatar
ilex01
OP
Best Answer
Level 5

php artisan config:cache solved the problem. I hope that this answer will help other people.

ilex01's avatar

Sorry for my question, simply clear your browser cache if the command above did'nt help.

Please or to participate in this conversation.