Answer the question
In order to leave comments, you need to log in
Not a question, but rather a request to clarify the point with Laravel?
Good afternoon! Please tell me how to use laravel authorization correctly, is it possible to make it so that all routes that have the word "dashboard" in their path are automatically checked for the presence of an authorized user? Thank you!
Answer the question
In order to leave comments, you need to log in
It is possible through middleware, as answered above: to register it in the constructor of the base admin controller (a separate controller from which other admin controllers are inherited). If you plan to create roles, then I advise the package: https://github.com/Zizaco/Entrust
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question