agj/nova-translations

一个 Laravel Nova 工具。


README

Nova 翻译工具

安装

composer require agj/nova-translations

App\Providers\NovaServiceProvider 中插入以下行

use Agj\NovaTranslations\NovaTranslations;

class NovaServiceProvider extends NovaApplicationServiceProvider
{
   ...
   
   /**
     * Get the tools that should be listed in the Nova sidebar.
     *
     * @return array
     */
    public function tools()
    {
        return [
            new NovaTranslations,
        ];
    }
    ...
}

并在 config/app.phpproviders 数组中

    Agj\NovaTranslations\TranslationServiceProvider::class,

然后执行以下迁移命令

php artisan migrate