Getting Started

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 :

  1. publish filament-suitcms config to folder config/cms
  2. ask to run migration, if you get asked Would you like to run the migrations now? choose yes, this will run migration for media and roles permission
  3. sync permission data
  4. generate default super admin user, default admin user is admin@admin.com with password : password
  5. 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
    }