lingmyat / filament-starter-kit
Filament starter kit include ready make Multi-Tenant, Filament Shield, Filament Exception, Customize Login Page
Package info
github.com/LingMyat/Filament-Starter-Kit
Type:project
pkg:composer/lingmyat/filament-starter-kit
Requires
- php: ^8.1
- bezhansalleh/filament-exceptions: ^2.1
- bezhansalleh/filament-shield: ^3.1
- filament/filament: ^3.2
- guzzlehttp/guzzle: ^7.2
- laravel/framework: ^10.10
- laravel/sanctum: ^3.3
- laravel/tinker: ^2.8
Requires (Dev)
- fakerphp/faker: ^1.9.1
- laravel/pint: ^1.0
- laravel/sail: ^1.18
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^7.0
- phpunit/phpunit: ^10.1
- spatie/laravel-ignition: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A Laravel 10 and Filament 3 starter for team-based admin panels. It includes an /admin panel with team tenancy, a custom sign-in page, roles and permissions through Filament Shield, and an exception viewer through Filament Exceptions.
Requirements
- PHP 8.3 with the project’s required extensions, including
pdo_mysqlfor MySQL - Composer 2
- A running MySQL server and an empty database
Local setup
Create an application from the Composer package.
composer create-project lingmyat/filament-starter-kit my-admin-panel
cd my-admin-panel
Composer creates .env, generates the application key, and publishes the Filament assets. Set APP_URL=http://127.0.0.1:8000 and configure the DB_* values in .env for your empty database. Example environment
Run the migrations, then create the first panel user. The user command prompts for a name, email, and password.
php artisan migrate php artisan make:filament-user
Generate the panel permissions, assign the super_admin role to the first user, and create that user’s initial team.
php artisan shield:generate --all --option=permissions php artisan shield:super-admin --panel=admin --user=1 php artisan db:seed php artisan serve
Open http://127.0.0.1:8000/admin and sign in with the email or account name and password you chose.
First team
The seeder creates Min Shin Saw with the slug min-shin-saw and attaches user ID 1. Run it once after creating the first user in a fresh database. Edit the team name and slug before seeding if you want to start with a different team. For an existing database, use the intended user’s actual ID in both the role assignment and the seeder. FirstTenantSeeder.php
Install from a Git checkout
git clone https://github.com/LingMyat/Filament-Starter-Kit.git
cd Filament-Starter-Kit
cp .env.example .env
composer install
php artisan key:generate
Configure .env, then continue with the database and panel setup above.
Customize the panel
| Change | File |
|---|---|
| Panel path, branding, tenant model, and enabled plugins | AdminPanelProvider.php |
| Sign-in page | Login.php |
| Which teams a user can access | User.php |
| Role and permission settings | filament-shield.php |
| Exception viewer settings | filament-exceptions.php |
Production
Laravel 10 has reached the end of security support. Upgrade to supported dependencies before deploying. Set APP_DEBUG=false and review who can access the admin panel, each team, and the exception viewer. Laravel support policy · Filament deployment guide
Credits and license
This project is a fork of zymhmss/Filament-Starter-Kit and is available under the MIT License.