I implemented a role/permission system. Now I want to add a method to Laravel router so I can make something like this:
Route::get('sales', 'SaleController@index')->allow('Salesman');
I know that I can use @can('Salesman')
(View) and $user->can('Salesman')
(Controller) but I found so much readable the way I'm trying to do it since I'll be able to see all role permission access in the routes file.