Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Route::resource and Route::controller equivalent for Lumen?

Tags:

php

laravel

lumen

I'm building a little Lumen application, but I'm unable to figure out the equivalent of Laravel's Route::resource and Route::controller function for Lumen.

like image 579
Jis Jose Avatar asked Oct 19 '22 12:10

Jis Jose


1 Answers

Lumen is a microframework, engineered for performance rather than extensive functionality. It doesn't use the full Laravel router, so there are no Route::resource or Route::controller functions.

You can manually define similar routes, if you like.

like image 154
ceejayoz Avatar answered Oct 22 '22 07:10

ceejayoz