saade / Filament-Starter-Kit

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FilamentStartedKit

FilamentStarterKit is a Filament distribution with lots of pre-installed.

New Installation

composer create-project lingmyat/filament-starter-kit

Run migrations

php artisan migrate

Create the first/admin user:

php artisan make:filament-user

Init FilamentShield

php artisan shield:install

For the FilamentShield install, answer "yes" to all questions it asks.

Seed First Tenant

You can customize your tenant team name at database\Seeders\FirstTenantSeeder Min Shin Saw will be default

Team::create([
    'name' => 'Min Shin Saw',
    'slug' => 'min-shin-saw',
])->users()->attach(User::find(1));

Then Run This

php artisan db:seed

You can now go to /admin on your site and you should see the filament login screen. Log in with the user you created in step #4 above.

In this Starter Kit I use filament shield plugin for roles and permissions. If you want to know more usage and commands check out this repo BezhanSalleh Filament Shield.

All relevant migrations, views and config files have been published to the main Laravel directory tree to the locations where you would expect them. If a package (such as, for exmaple, the Spatie packages) is based upon another package, the base package migrations and config files have been published as well.

About

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


Languages

Language:PHP 67.6%Language:JavaScript 16.7%Language:Blade 15.7%