E
E
evgenin2020-04-29 18:24:00
Laravel
evgenin, 2020-04-29 18:24:00

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

1 answer(s)
B
bubaley, 2020-04-29
@evgenin

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 your question

Ask a Question

731 491 924 answers to any question