Depending on your controller you could do something like:
$controller = new MyController();
$result = $controller->functionIWantToCall();
But to be honest if you want to call a function from another controller I suggest moving that function to another class. (Service/Helper/...) Most of the time you want your controller to contain only functions that are called from the request or internal functions that are only used in that controller.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community