skunkbad's avatar

Does Lumen offer any way to call a route via cli?

I know Laravel has console routes, but short of using wget, what are my options? This app is done, short of running a few crons, and I'd rather call them the right way.

0 likes
4 replies
martinbean's avatar

@skunkbad Lumen is more for pure HTTP APIs, so doesn’t have support for Artisan commands out of the box. If you do need things like Artisan, scheduling etc, then it may be worth moving the application to Laravel.

skunkbad's avatar

Yeah, I thought you'd say that. I'll probably switch to Laravel at some point. I need to add hours to the day, if you know what I mean.

Cronix's avatar

Luckily you can almost just drop the Lumen code into a Laravel install with little to no alteration. That's the theory, anyway lol.

An alternative is to use Laravel Shift ($5) to do the conversion. https://laravelshift.com/shifts

Please or to participate in this conversation.