How to switch eloquent record context for table action
I have a table action that when clicked open infolist. But I want to change the eloquent record context for that infolist. I've tried with
mountUsing
but with no luck:
If I use form then I can bind different record in mountUsing by calling $form->model($otherModel);
and then $form->fill($otherModel->toArray());
0 Replies