lingmyat/filament-starter-kit

Filament starter kit include ready make Multi-Tenant, Filament Shield, Filament Exception, Customize Login Page

Installs: 622

Dependents: 0

Suggesters: 0

Security: 0

Stars: 33

Watchers: 0

Forks: 7

Type:project

V1.0.4 2024-03-07 07:13 UTC

This package is auto-updated.

Last update: 2024-04-07 07:51:13 UTC


README

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.

New Installation

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.

Seed First Tenant

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.

Production Section

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

License

The MIT License. Please see the license file for more information.