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