Closed r-shaygan closed 1 year ago
$form->multipleSelect('roles','Role')->options(Role::all()->pluck('name','id'));
in the code above we can just get the related model value.. what if it has pivot fields?
$form->multipleSelect('roles','Role')->options(Role::all()->pluck('name','id'));
in the code above we can just get the related model value.. what if it has pivot fields?