1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-25 20:02:30 +01:00
freescout/vendor/axn/laravel-laroute
2018-07-25 07:09:20 -07:00
..
src Conversation status change 2018-07-25 07:09:20 -07:00
.gitignore Conversation status change 2018-07-25 07:09:20 -07:00
changelog.md Conversation status change 2018-07-25 07:09:20 -07:00
composer.json Conversation status change 2018-07-25 07:09:20 -07:00
license Conversation status change 2018-07-25 07:09:20 -07:00
readme.md Conversation status change 2018-07-25 07:09:20 -07:00

Laravel Laroute

This package is an extension of aaronlord/laroute to lighten the laroute.js file 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.

Installation

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 config/app.php:

'providers' => [
    // ...
    Axn\Laroute\ServiceProvider::class,
],

Usage

See the reader of aaronlord/laroute: https://github.com/aaronlord/laroute

The difference is that the action and link_to_action methods are no longer usable as the road actions have been removed from laroute.js.