avnir/easyrouting
Fast Workflow in Laravel With EasyRouting
Major Versions:
- 2.x (YOU ARE HERE) - For
laravel/framework:~5.*andavnir/easyrouting:~2 - 1.x (1.0 branch) - For
laravel/framework:4.*andavnir/easyrouting:~1
Installation
Begin by installing this package through Composer. Edit your project's composer.json file to require avnir/EasyRouting.
{
"require": {
"avnir/EasyRouting": "~2"
}
}
Next, update Composer from the Terminal:
php composer.phar update
To use the EasyRouting Provider, you must register the provider when bootstrapping your Laravel application.
Find the providers key in your config/app.php and register the EasyRouting Provider.
'providers' => array(
// ...
'Avnir\Easyrouting\EasyroutingServiceProvider::class',
)
Find the aliases key in your config/app.php and add the AWS facade alias.
'aliases' => array(
// ...
'Easyrouting' => Avnir\Easyrouting\Easyrouting::class,
)
Usage
On the routes.php file you need to call
\EasyRouting::run();
this will setup REST routes for all the public methods of the Controllers.
If you ever want to exclude a controller from having a route, just add
var $exclude = true;
into the Controller
Related Packages
Provides middleware to log full request and response to some storage instance.
This package allows you to cache your routes definitions, thereby speeding up ea...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.0.1 | >=5.5.0 | ~5 | MIT | |
| 2.0.0 | >=5.5.0 | ~5 | MIT | |
| v1.0.1 | >=5.4.0 | ~4 | MIT | |
| v1.0.0 | >=5.4.0 | ~4 |