Answer the question
In order to leave comments, you need to log in
How to pass multiple controllers to laravel route?
Hello everyone
There are two controllers and two models
User/Company , of
course they are interconnected
. But when you go to a certain page, you need to display ALL users and ALL companies.
And in different lists.
Relationships - One company to many Users
on the same page should be both all companies and users, for example:
Route::get('/all', [UsersController::class, 'getUsers']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question