Relation with multiple select - how show pre-selected values #2753
-
Please help, I couldn't find the solution. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
i think you should use plural form of project_id as 'news.project_ids.' then you should load your model with that project_ids using 'with' in your model public function project_ids(){ return $this->belongsToManyBlaBla() } then this will probably show up. A little workaround is, load your ids and their labels by hand, then give Relation::make(blabla)...->value($idsFetchedByHand) |
Beta Was this translation helpful? Give feedback.
i think you should use plural form of project_id as 'news.project_ids.' then you should load your model with that project_ids using 'with' in your model public function project_ids(){ return $this->belongsToManyBlaBla() } then this will probably show up.
A little workaround is, load your ids and their labels by hand, then give Relation::make(blabla)...->value($idsFetchedByHand)