Answer the question
In order to leave comments, you need to log in
How to get data from controller'[email protected]?
Good day to all.
The question remains: I have a controller (of roles and privileges), I pulled out a list of controllers, how can I get data when accessing from one controller to another? For example RoleController get data from [email protected]?
Thank you.
Answer the question
In order to leave comments, you need to log in
This is the code that should be in the service, and not in the controller, but call it like any other like$data = (new IndexController)->infoRole();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question