Add Filament Spatie Laravel Translatable Plugin and update dependencies in composer files
- Added the `filament/spatie-laravel-translatable-plugin` to `composer.json` for enhanced localization support. - Updated `composer.lock` to reflect the addition of the new plugin and updated versions for several dependencies, including `doctrine/dbal`, `phpstan/phpstan`, and `phpunit/phpunit`. - Modified `PanelPanelProvider.php` to integrate the translatable plugin with default locales for improved internationalization.
This commit is contained in:
1 parent
6405150dd2
commit
bc56a1824f
3 files changed
+85
-34
No files matched your search
@@ -23,6 +23,7 @@
|
||||
use Illuminate\Session\Middleware\StartSession;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\View\Middleware\ShareErrorsFromSession;
|
||||
use Filament\SpatieLaravelTranslatablePlugin;
|
||||
|
||||
class PanelPanelProvider extends PanelProvider
|
||||
{
|
||||
@@ -75,7 +76,11 @@ public function panel(Panel $panel): Panel
|
||||
->resources([
|
||||
config('filament-logger.activity_resource'),
|
||||
ApplicationResource::class,
|
||||
]);
|
||||
])
|
||||
->plugin(
|
||||
SpatieLaravelTranslatablePlugin::make()
|
||||
->defaultLocales(['en', 'ru', 'tk'])
|
||||
);
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
|
||||
Reference in new issue
Block a user