Download the PHP package clarence/lumen-default-routes without Composer
On this page you can find all versions of the php package clarence/lumen-default-routes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download clarence/lumen-default-routes
More information about clarence/lumen-default-routes
Files in clarence/lumen-default-routes
Download clarence/lumen-default-routes
More information about clarence/lumen-default-routes
Files in clarence/lumen-default-routes
Vendor clarence
Package lumen-default-routes
Short Description Default routes for laravel
License MIT
Package lumen-default-routes
Short Description Default routes for laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package lumen-default-routes
Default Routes For Lumen
With this library, you can easily add "module/controller/action" style routes for Lumen.
Install
Suggest install it via composer:
Then, register the DefaultRouteProvider
. For lumen, please register \Clarence\LumenDefaultRoutes\DefaultRouteProvider::class
in bootstrap/app.php
.
Routes Maps
foo/bar
will be mapped to \App\Http\Controllers\FooController@doGetBar
by default.
Note:
\App\Http\Controllers\
is the namespace prefix of the controller. It can be configurated asdefault-routes.controller-prefix
.- In
FooController
,Controller
is the class name suffix. It can be configurated asdefault-routes.controller-suffix
. doGetBar
is the actual method to be executed. It isdo
+<HTTP_METHOD>
+<action>
. And it should be apublic
method. Otherwise a404
or405
HTTP error will be thrown.- If
\App\Http\Controllers\FooController@doGetBar
cannot be found,\App\Http\Controllers\Foo\BarController@doGetIndex
will be tried.
All versions of lumen-default-routes with dependencies
PHP Build Version
Package Version
The package clarence/lumen-default-routes contains the following files
Loading the files please wait ....