Prerequisites
Bolt is built on top of laravel and uses filament as an admin panel to manage everything.
And for the frontend, it uses Tall stack.
So, ensure you are familiar with these tools before diving into Lara Zeus Bolt.
Note
You can get up and running with our starter kit Zeus.
Installation
Important
Before starting, make sure you have the following PHP extensions enabled:sqlite
Install Lara Zeus Bolt by running the following commands in your Laravel project directory.
1composer require lara-zeus/bolt2php artisan bolt:install
The install command will publish the migrations and the necessary assets for the frontend.
Register Bolt with Filament:
To set up the plugin with filament, you need to add it to your panel provider; The default one is adminPanelProvider
1->plugins([2 SpatieLaravelTranslatablePlugin::make()->defaultLocales([config('app.locale')]),3 BoltPlugin::make()4])
Add Bolt Trait to User Model
add this to your user model:
use \LaraZeus\Bolt\Models\Concerns\BelongToBolt;
This will allow you to get the user name by another attribute like full_name
Usage
To access the forms, visit the URL /admin
, and /bolt
.
Deploying to Production
to improve performance in the production environment, make sure to run these commands with your deployment workflow:
1php artisan icons:cache
To learn more about performance in the production, check out filament docs.