From 0b3a0a9247cee3e8589dab839883498b32e8b06a Mon Sep 17 00:00:00 2001 From: Haziyev Tofik <7501864+toxageek@users.noreply.github.com> Date: Wed, 19 Jun 2024 19:12:46 +0300 Subject: [PATCH] fix: replace resource_path to lang_path in lang publishing version 3.x require "spatie/laravel-translatable": "^6.0", wich require Laravel 9+. In Laravel 9 was added method lang_path(), because default path is migrated from 'resources' to base folder. When spatie-laravel-translatable-plugin create folder 'lang' in 'resources', Laravel don't get translation from base 'lang' folder anymore. Test this, please. Thanks. --- src/SpatieLaravelTranslatablePluginServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpatieLaravelTranslatablePluginServiceProvider.php b/src/SpatieLaravelTranslatablePluginServiceProvider.php index 2cee705..7edb43a 100644 --- a/src/SpatieLaravelTranslatablePluginServiceProvider.php +++ b/src/SpatieLaravelTranslatablePluginServiceProvider.php @@ -10,7 +10,7 @@ public function boot(): void { if ($this->app->runningInConsole()) { $this->publishes([ - __DIR__ . '/../resources/lang' => resource_path('lang/vendor/filament-spatie-laravel-translatable-plugin-translations'), + __DIR__ . '/../resources/lang' => lang_path('vendor/filament-spatie-laravel-translatable-plugin-translations'), ], 'filament-spatie-laravel-translatable-plugin-translations'); }