This package gives js the handful of helper routing functions available to Laravel.
{
"require" : {
"lord/laroute" : "1.0"
}
}
...
'providers' => array(
...
'Lord\Laroute\LarouteServiceProvider',
],
...
<?php
return array(
'template' => 'vendor/lord/laroute/src/Lord/Laroute/templates/laroute.min.txt',
'path' => 'public/js',
'filename' => 'laroute',
'namespace' => 'laroute',
);
php artisan generate:laroute