Download the PHP package elaborate-code/laravel-resource-routes without Composer
On this page you can find all versions of the php package elaborate-code/laravel-resource-routes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elaborate-code/laravel-resource-routes
More information about elaborate-code/laravel-resource-routes
Files in elaborate-code/laravel-resource-routes
Package laravel-resource-routes
Short Description A complementary Route Facade with methods to register resource routes
License MIT
Homepage https://github.com/elaborate-code/laravel-resource-routes
Informations about the package laravel-resource-routes
Laravel Resource Routes
⚠️Do not use this library! If you like the idea just copy the code from /src/ResourceRoute.php. You do not need to rely on me maintaining a small syntactic sugar to keep your product up and running.
Route::ressource
is a very convenient method that handles many conventions on the fly like the controller methods names, the URI, the route name, and the HTTP verb. But you may often find yourself
chainning Route::ressource
with only
or except
for various reasons:
- Altering the ressource controller methods signatures.
- Using different
middlewares
on resouce routes.
In the case you find yourself using Route::ressource
for only one or two methods, this package may come in handy, to offer what may seem as a cleaner syntax.
Installation
Usage example
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-resource-routes with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0