Answer the question
In order to leave comments, you need to log in
How to organize this in Laravel?
I need to write to the table
entity entity_id user_id
And for this we first load the list of entities (table names), and then, depending on the selected entity, we get the records. Is there anything more reasonable than
$map=[
'some_entity'=>'App\Some',
'some_entity2'=>'App\Some2'
];
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