Skip to content

LingMyat/Filament-Starter-Kit

 
 

Repository files navigation

Filament Starter Kit

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.

About

Starter Kit with Multi-Tenant, Role, Permission, Exception

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 67.8%
  • JavaScript 16.6%
  • Blade 15.6%