Skip to content

Commit

Permalink
Merge pull request #15 from IBEC-BOX/fix/comment-plugins
Browse files Browse the repository at this point in the history
- Remove filament-language-switch plugin from filament
  • Loading branch information
ast21 authored Sep 19, 2023
2 parents 9750a4c + ec63002 commit 4002da1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 346 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
11 changes: 2 additions & 9 deletions src/Providers/FilamentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,11 @@

use Filament\Panel;
use Filament\PanelProvider;
use Livewire\LivewireServiceProvider;

//use Livewire\LivewireServiceProvider;

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 4002da1

Please sign in to comment.