Extend aaronlord/laroute package.
This package is an extension of
lord/laroute to lighten the
by providing only the names and URLs of the routes; the other properties (host, methods, action)
are useless in most cases. Also we think that it is not safe to expose the paths of the classes
of the application; so we are more secure as well.
Install the package with Composer:
composer require axn/laravel-laroute
In Laravel 5.5 the service provider will automatically get registered.
In older versions of the framework just add the service provider
to the array of providers in
'providers' => [ // ... Axn\Laroute\ServiceProvider::class, ],
See the reader of
The difference is that the
link_to_action methods are no longer usable
as the road actions have been removed from