generated from spatie/package-skeleton-laravel
05. TiMEX filament resource
Michael edited this page Dec 19, 2022
·
1 revision
- Filament resource class (default:
\Buildix\EventResource::class
)You may create your own filament resource class & pages in order to list / manage your events. After creating your filament resource, make sure to register it in'resources' => [ 'event' => \Buildix\Timex\Resources\EventResource::class, ],
timex.php
config
- Integer (default:
1
)Filament navigation item sorting'resources' => [ 'sort' => 1, ],
- String (default:
heroicon-o-calendar
)Filament navigation icon'resources' => [ 'icon' => 'heroicon-o-calendar', ],
- String (default:
timex-events
)Slug is used to define the url of your resource page'resources' => [ 'slug' => 'timex-events', ],
-
Boolean (default:
true
)'resources' => [ 'shouldRegisterNavigation' => true, ],
If it's
true
, TiMEX filament resource will be registered on your navigation panelIf enablePolicy is te to
true
optionshouldRegisterNavigation
will be ignored and access to TiMEX filament resource will be configured in accordance with your laravel policies made for TiMEX event model
- Laravel model (default:
\Buildix\Event::class
)You may create your own laravel model to store your events. After creating your laravel model, make sure to register it in'models' => [ 'event' => \Buildix\Timex\Models\Event::class, ],
timex.php
config
- Laravel model (default:
\App\Models\User::class
)'models' => [ 'users' => [ 'model' => \App\Models\User::class, 'name' => 'name', 'id' => 'id', ], ],
- String (default:
timex_events
)Name of your DB table to store TiMEX events. You may change to any other name that fits your application.'tables' => [ 'event' => [ 'name' => 'timex_events', ], ],
- String (default:
timex_categories
)Name of your DB table to store TiMEX categories. You may change to any other name that fits your application.'tables' => [ 'category' => [ 'name' => 'timex_categories', ], ],