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

donnieashok's avatar

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?

0 likes
6 replies
Emtized's avatar

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

1 like
donnieashok's avatar

@Emtized Hey, yes! I tried that! I even tried downgrading to Lumen 5.4

Nothing seems to help.

donnieashok's avatar

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.

D9705996's avatar

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.

donnieashok's avatar

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 or to participate in this conversation.