codewithdiki/filament-theme-manager

laravel主题管理器的插件,只需一键即可部署主题。

0.2.3 2023-01-26 02:51 UTC

This package is auto-updated.

Last update: 2024-09-30 01:37:26 UTC


README

入门指南

安装此插件之前您应该知道的一些事情

此插件优于hexadog/laravel-themes-manager和filament/filament,因此在安装此插件之前,我建议您先了解它们。此插件需要您在队列中运行一个进程。使用Laravel Horizon或其他工具运行队列,并且我也建议您使用redis。

阅读此内容

如果您在vite支持之前安装了此插件,您应该为主题表创建新的迁移,您的迁移应该看起来像这样

    public function up()
    {
        Schema::table('themes', function (Blueprint $table) {
            $table->string('asset_compiler')->default('mix');
        });
    }

安装指南

composer require codewithdiki/filament-theme-manager

在config/app.php中的提供者部分放置以下代码

'providers' => [

        ...

        /*
         * Package Service Providers...
         */
        Codewithdiki\FilamentThemeManager\FilamentThemeManagerProvider::class,

        ...

    ],

发布视图和迁移

php artisan vendor:publish --tag=filament-theme-manager-migrations

php artisan vendor:publish --tag=filament-theme-manager-views

迁移

php artisan migrate

image image image image