vendredi 3 mars 2017

web middleware for specific routes in laravel 5.2

In Laravel 5.4 the web middleware is included on all routes by default. But I want to show those routes(menu's) assign to users. For example I have some routes(menu's) as follows

user\list
user\add
user\show_form
list\forms

if user 'ABC' assign only two routes(menu's) like

`user\list`
`user\add`

so when user 'ABC' is logged that in menu shows only two routes(menu's) those assign. When user create that time I assign routes(menu's) and this stored in permission table. Now my question is how can I handle this using middleware. Is this possible handle via middleware. please suggest me Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire