Answer the question
In order to leave comments, you need to log in
How to get model by table name?
I pass the name of the table as a parameter. Route::get('/{table}/sort', '[email protected]');
The models I have are in the Models folder
. For example, the User namespace App\Models\User model has this
. Is there a way to get the model by the table name?
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