Lumen 5.6: php artisan make:auth $ php artisan make:auth
Command "make:auth" is not defined.
Did you mean one of these?
make:migration
make:seeder
I am getting this error while trying to setup the Auth Controllers. What is the way out?
Before using Lumen's authentication features, you should uncomment the call to register the AuthServiceProvider service provider in your bootstrap/app.php file.
after uncomment this section every things will be fine and you can use
php artisan make:auth
@Emtized
Hey, yes! I tried that!
I even tried downgrading to Lumen 5.4
Nothing seems to help.
Paste Your error message please
Hi @Emtized this is what I see.
$ php artisan make:auth
Command "make:auth" is not defined.
Did you mean one of these?
make:migration
make:seeder
I have since moved on, and had manually added all the required files. But if there are any solutions to this, I would love to know.
The reason you can't run make:auth with lumen is because it doesn't exist.
Lumen is designed for creating APIs which have no UI/views etc which is part of what the command does.
Whilst you can make this work you should really decide on what you are building. If it's not an API then just use laravel and not lumen.
Yes, got it!
I was guessing that it would be there, as auth is an important part of any resource, be it microservice or a full fledged CMS.
Anyway! Thank you @Emtized and @D9705996 for your help!
Please sign in or create an account to participate in this conversation.