bolt

you are reading the documentation for version v2 our latest version is v3 make sure to select the correct version.
to check your version use: composer show lara-zeus/bolt

Configuration

There is two different set of configuration, for filament, and for the frontend pages

Filament Configuration

to configure the plugin Bolt, you can pass the configuration to the plugin in adminPanelProvider

these all the available configuration, and their defaults values

Note
All these configurations are optional

1BoltPlugin::make()
2 // the default models, by default Bolt will read from the config file 'zeus-bolt'.
3 // but if you want to customize the models per panel, you can do it here
4 ->boltModels([
5 // ...
6 'Category' => \App\Models\Bolt\Category::class,
7 'Collection' => \App\Models\Bolt\Collection::class,
8 'Field' => \App\Models\Bolt\Field::class,
9 'FieldResponse' => \App\Models\Bolt\FieldResponse::class,
10 'Form' => \App\Models\Bolt\Form::class,
11 'FormsStatus' => \App\Models\Bolt\FormsStatus::class,
12 'Response' => \App\Models\Bolt\Response::class,
13 'Section' => \App\Models\Bolt\Section::class,
14 ])
15 
16 ->hideResources([
17 FormResource::class
18 ])
19 
20 ->navigationGroupLabel('Bolt')
21 
22 ->extensions([
23 Thunder::class,
24 ])
25,

Customize Filament Resources

you can customize all Bolt resources icons and sorting by adding the following code to your AppServiceProvider boot method

1FormResource::navigationSort(100);
2FormResource::navigationIcon('heroicon-o-home');
3FormResource::navigationGroup('New Name');

available resources:

  • CategoryResource,
  • CollectionResource,
  • FormResource,
  • ResponseResource,

Frontend Configuration

use the file zeu-bolt.php, to customize the frontend, like the prefix,domain, and middleware for each content type.

to publish the configuration:

1php artisan vendor:publish --tag=zeus-bolt-config

Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.