Getting started
Installation
install filament package
you need to install package spatie permission and spatie media library 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:
install filament-suitcms plugin
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 - add default suitcms model
- sync permission data
- generate some policies
- generate default super admin user, default admin user is
[email protected]
with password :password
- generate default setting data
adjust config/auth.php
add this
'guards' => [
'cms' => [
'driver' => 'session',
'provider' => 'cms',
],
],
'providers' => [
'cms' => [
'driver' => 'eloquent',
'model' => App\Models\Admin::class,
],
],
'passwords' => [
'cms' => [
'provider' => 'cms',
'table' => 'admin_password_reset_tokens',
'expire' => 60,
'throttle' => 60,
],
],
now you can create filament panel builder using this command :
then open PanelProvider
add this line