aaronlord / laroute

Generate Laravel route URLs from JavaScript.
MIT License
796 stars 138 forks source link

Filter of hidden routes is not working #86

Open priMo-ex3m opened 6 years ago

priMo-ex3m commented 6 years ago

The filter method of laroute => false is not working. I triple-checked. I have setted in configs 'filter' => 'all' property, and at route groups / single routes I give an array with "laroute" => false, generate a new javascript, but anyway...it includes even routes with "laroute => false" value...

priMo-ex3m commented 6 years ago

*Using Laravel 5.6

Route::prefix('manage')->middleware('role:superadministrator|administrator')->group(['laroute' => false],function () { Route::get('/', 'ManageController@index'); Route::get('/dashboard', 'ManageController@dashboard')->name('manage.dashboard'); });

and anyway, on console, using laroute.route('manage.dashboard') gives me "/manage/dashboard"

priMo-ex3m commented 6 years ago

Also, if I change in config the filter value to only, and in routes above change laroute to true, in generated laroute.js file, the routes array is empty.