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:
@@ -23,6 +23,7 @@ use Illuminate\Session\Middleware\AuthenticateSession;
|
||||
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 @@ class PanelPanelProvider extends PanelProvider
|
||||
->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