Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter of hidden routes is not working #86

Open
priMo-ex3m opened this issue May 4, 2018 · 2 comments
Open

Filter of hidden routes is not working #86

priMo-ex3m opened this issue May 4, 2018 · 2 comments

Comments

@priMo-ex3m
Copy link

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
Copy link
Author

priMo-ex3m commented May 4, 2018

*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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant