Answer the question
In order to leave comments, you need to log in
How to divide application functionality into roles?
how to separate a method or controller for each role? After all, the role may have nuances in creating a record, and in the method it is not very beautiful to separate.
Answer the question
In order to leave comments, you need to log in
To do this, Laravel has such a thing as Policies . I recommend carefully, henceforth, to read the documentation for various functionalities.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question