Skip to content

Commit

Permalink
feat: remove filament-language-switch plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ast21 committed Sep 19, 2023
1 parent f0ce78c commit ec63002
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 345 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
],
"require": {
"php": "^8.1",
"bezhansalleh/filament-language-switch": "^2.0",
"bezhansalleh/filament-shield": "^3.0",
"filament/filament": "^3.0-stable",
"filament/spatie-laravel-media-library-plugin": "^3.0-stable",
Expand Down
3 changes: 1 addition & 2 deletions config/admin-kit.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use AdminKit\Core\UI\Filament\Resources\UserResource;
//use BezhanSalleh\FilamentLanguageSwitch\FilamentLanguageSwitchPlugin;
use BezhanSalleh\FilamentShield\Resources\RoleResource;
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents;
Expand Down Expand Up @@ -62,7 +61,7 @@
Filament\Widgets\FilamentInfoWidget::class,
],
'plugins' => [
// FilamentLanguageSwitchPlugin::make(),
//
],

'middleware' => [
Expand Down
1 change: 0 additions & 1 deletion src/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ protected function publishFiles(): self
__DIR__.'/../config/admin-kit.php' => config_path('admin-kit.php'),
__DIR__.'/../stubs/app/AdminKitUser.stub' => app_path('Models/AdminKitUser.php'),
__DIR__.'/../stubs/config/filament-shield.php' => config_path('filament-shield.php'),
__DIR__.'/../stubs/config/filament-language-switch.php' => config_path('filament-language-switch.php'),
], 'admin-kit-stubs');
}

Expand Down
8 changes: 0 additions & 8 deletions src/Providers/FilamentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@

class FilamentServiceProvider extends PanelProvider
{
// public function register(): void
// {
// // нужно чтобы плагины содержащие Livewire корректно сели
// $this->app->registerDeferredProvider(LivewireServiceProvider::class);
//
// parent::register();
// }

public function panel(Panel $panel): Panel
{
return $panel
Expand Down
Loading

0 comments on commit ec63002

Please sign in to comment.