I'm using backpack in my project. I’ve created a customized fields that is dropdown and select box. In one blade file I’m displaying two fields based on dropdown selection I’ll display the options for select box. So everything is working fine somehow Edit and update is working for these customized field. any idea how to achieve this? Thanks in advance
In one blade file I've written these two customized fields code. so based on dropdown selection I'll pull up the options for next select box. Tried to override existed backpack files for this model. but no luck.
'label' => "Professors",
'type' => "selectProfessors",
'name' => 'professor_id',
'entity' => 'professor',
'attribute' => "name",
'model' => Professor::class,
'options' => (function ($query) {
return $query->where('professor_id', '=', backpack_user()
->professor_id)
->get();
}),
It is not working only for edit and update. for creating and deleting working as expected.