sam9's avatar
Level 50

Lumen: how to add 'make' or 'generate' artisan commands for model, controller, etc

Lumen is missing all of the 'make' or 'generate' artisan commands for model, controller, etc. and 'route' for routing

is there anyway that we can get all those commands back?

0 likes
8 replies
Ozan's avatar

Copy, paste from a laravel installation?

jekinney's avatar

It's not suppose to, it's a minimal framework for a reason. If you really need a generator, as posted above, create your code in a laravel app and copy it over.

SP1966's avatar

@jekinney

The idea that you need to install Laravel simply to use it's generators, then C&P over to your actual app is inane. I'm very curious why generators are removed from Lumen and wonder if they cause some sort of performance issue?

4 likes
jekinney's avatar

I agree, but I just type them out. So for me a non-issue. Possibly could make a package with generators and only require as dev environment. That way when your app is pushed no worries about overhead.

Reklino's avatar

Yeah I'd also like to see the generators packaged with Lumen. Doesn't make much sense to exclude them.

2 likes

Please or to participate in this conversation.