Harings Rob
09/21/2022, 10:51 AMHarings Rob
09/21/2022, 10:52 AMifox
09/21/2022, 10:53 AMHarings Rob
09/21/2022, 10:54 AMmateoD
09/21/2022, 10:54 AMifox
09/21/2022, 10:54 AMHarings Rob
09/21/2022, 10:55 AMHarings Rob
09/21/2022, 10:55 AMRelation::morphMap([
'events' => 'App\Models\Event',
'articles' => 'App\Models\Article',
'pages' => '\App\Models\Page',
'modules' => '\App\Models\Module',
'speakers' => '\App\Models\Speaker',
]);
Harings Rob
09/21/2022, 10:56 AMHarings Rob
09/21/2022, 10:56 AMmateoD
09/21/2022, 10:57 AMHarings Rob
09/21/2022, 10:59 AMmateoD
09/21/2022, 11:01 AMHarings Rob
09/21/2022, 11:03 AMHarings Rob
09/21/2022, 11:10 AMsubject_type
do you see people or a namespace?ifox
09/21/2022, 11:27 AMmateoD
09/21/2022, 12:06 PMClass App\Models\People specified in twill.dashboard configuration does not exists.
Harings Rob
09/21/2022, 12:07 PM\
or make it \App\Models\People::class
(but without quotes)Harings Rob
09/21/2022, 12:07 PMkalle
09/21/2022, 12:09 PMphp
return [
'dashboard' => [
'modules' => [
'App\Models\People' =>[ // Or change name if name of the model is diffrent
'name' => 'people',
'label' => 'People',
'count' => true,
'create' => true,
'activity' => true,
'draft' => false,
'search' => true,
'search_fields' => ['first_name', 'last_name']
],
mateoD
09/21/2022, 12:11 PMHarings Rob
09/21/2022, 12:11 PMmateoD
09/21/2022, 12:13 PMJeanSilva
09/21/2022, 1:38 PMtfilos
09/21/2022, 3:06 PMtfilos
09/21/2022, 3:08 PMtfilos
09/21/2022, 3:08 PMtfilos
09/21/2022, 3:09 PMtfilos
09/21/2022, 3:10 PMtfilos
09/21/2022, 3:10 PM