codewithdiki / filament-theme-manager
Plugin for laravel theme manager deploy your theme just by 1 click.
0.2.3
2023-01-26 02:51 UTC
Requires
- php: ^7.4|^8.0
- filament/filament: ^2.0
- filament/spatie-laravel-media-library-plugin: ^2.8
- hexadog/laravel-themes-manager: ^1.10
- spatie/data-transfer-object: ^3.8.1
- spatie/enum: ^3.13
- spatie/laravel-medialibrary: ^10.0.0
- spatie/laravel-package-tools: ^1.11.0
README
Geting Started
Things You Should Know Before Installing This Plugin
This plugin is stand above hexadog/laravel-themes-manager and filament/filament so before you install this plugin I recommend you to learn about them first. This plugin is require you to run a proccess in a queue. Use Laravel Horizon or other tools to run queue and also i recommend you to use redis.
READ THIS
If you install this plugin before vite is supported you should create new migrations for themes table, your migration should looks like this
public function up()
{
Schema::table('themes', function (Blueprint $table) {
$table->string('asset_compiler')->default('mix');
});
}
Install Guide
composer require codewithdiki/filament-theme-manager
In your config/app.php place this code in you providers section
'providers' => [
...
/*
* Package Service Providers...
*/
Codewithdiki\FilamentThemeManager\FilamentThemeManagerProvider::class,
...
],
Publish Views And Migration
php artisan vendor:publish --tag=filament-theme-manager-migrations
php artisan vendor:publish --tag=filament-theme-manager-views
Migrate
php artisan migrate