Installation
install filament package (opens in a new tab)
composer require filament/filament:"^3.1"
you need to install package spatie permission (opens in a new tab) and spatie media library (opens in a new tab) to use this package
composer require spatie/laravel-permission:"^6.3"
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
composer require spatie/laravel-medialibrary:"^10.0"
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider"
then install filament-suitcms plugin package via composer:
composer require jhonoryza/filament-suitcms
install filament-suitcms plugin
php artisan filament-suitcms:install
this command will do :
- publish filament-suitcms config to folder
config/cms
- ask to run migration, if you get asked
Would you like to run the migrations now?
chooseyes
, this will run migration for media and roles permission - sync permission data
- generate default super admin user, default admin user is
admin@admin.com
with password :password
- generate default setting data
now you can create filament panel builder using this command :
php artisan filament:install --panels
then open PanelProvider
add this line
public function panel(Panel $panel): Panel
{
return $panel
->plugin(SuitcmsToolkit::make()); // add this line
}