Filament Starter Kit is a distribution of Filament with a variety of pre-installed components. And remember, simple things are the best for your starting point.
To install Filament Starter Kit, use the following composer command:
composer create-project lingmyat/filament-starter-kit
After installation, run migrations:
php artisan migrate
Create the first/admin user:
php artisan make:filament-user
Initialize Filament Shield:
php artisan shield:install
During the Filament Shield installation, respond with "yes" to all the questions.
Customize your tenant team name in database\Seeders\FirstTenantSeeder
. The default team name is 'Min Shin Saw'.
Team::create([
'name' => 'Min Shin Saw',
'slug' => 'min-shin-saw',
])->users()->attach(User::find(1));
Then run the following command:
php artisan db:seed
Visit /admin
on your site, and you should see the Filament login screen. Log in with the user created in step #4.
This Starter Kit incorporates the Filament Shield plugin for roles and permissions. For additional usage and commands, refer to the Filament Shield repository.
All relevant migrations, views, and config files have been published to the main Laravel directory tree in the expected locations. If a package, such as the Spatie packages, is based on another package, the base package migrations and config files are also published.
When it comes to production, make sure you implement FilamentUser in your User Model, and add canAccessPanel function reference: https://filamentphp.com/docs/3.x/panels/installation#deploying-to-production
The MIT License. Please see the license file for more information.