Categories
How to add your routes in laravel after authorization?
In other words, how to restrict users by roles? while the routes are dynamic from the database
Answer the question
In order to leave comments, you need to log in
You can write your own middleware and hang it on a dynamic route. In this middleware, get the user and check him for access.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question