pboivin
12/02/2021, 5:13 PMBlock::where('id','=',58)->first()->getRelated('browsers');aleksdish
12/02/2021, 5:14 PMpboivin
12/02/2021, 5:16 PMBlock model? Not sure why you're not using A17\Twill\Models\Block.pboivin
12/02/2021, 5:21 PMaleksdish
12/03/2021, 10:52 AM@formField('select', [
'name' => 'menu',
'label' => '',
'placeholder' => 'menu',
'options' => [
[
'value' => 1,
'label' => 'Header'
],
[
'value' => 2,
'label' => 'Main'
],
[
'value' => 3,
'label' => 'Footer'
]
]
])ifox
12/03/2021, 10:54 AMmenu column in db and is it in the fillable array of your model?aleksdish
12/03/2021, 1:42 PMifox
12/03/2021, 1:44 PMkalle
12/03/2021, 1:49 PMaleksdish
12/03/2021, 1:49 PMaleksdish
12/03/2021, 1:49 PMaleksdish
12/03/2021, 1:50 PMifox
12/03/2021, 1:50 PMaleksdish
12/03/2021, 1:53 PM@formField('browser', [
'modules' => $modules,
'label' => 'Linked Page',
'max' => 1,
'name' => $browserName
])
This field does it.ifox
12/03/2021, 1:54 PMaleksdish
12/03/2021, 1:54 PMifox
12/03/2021, 1:55 PMaleksdish
12/03/2021, 1:59 PMifox
12/03/2021, 2:02 PMkalle
12/03/2021, 2:14 PMifox
12/03/2021, 2:16 PM$browserColumns or the getTitleInBrowserAttribute accessoraleksdish
12/03/2021, 2:27 PMifox
12/03/2021, 2:27 PMkalle
12/03/2021, 2:28 PM$formWith = [customHandlerForBrowser]ifox
12/03/2021, 2:29 PMifox
12/03/2021, 2:32 PMprotected function getBrowserItems($scopes = [])ifox
12/03/2021, 2:33 PMkalle
12/03/2021, 2:33 PMifox
12/03/2021, 2:34 PMaleksdish
12/03/2021, 3:42 PM