Refactor Filament configuration and localization: Updated AdminPanelProvider to streamline plugin integration, added user resource configuration in filament-shield, and adjusted navigation sorting for Filament Users. Modified localization keys for user group settings to improve clarity. Cleaned up CSS for logo display on login page.

This commit is contained in:
Ümit Tunç
2025-09-29 13:08:16 -03:00
parent 481c535f8e
commit 13dfa1ebda
5 changed files with 12 additions and 11 deletions
@@ -13,7 +13,6 @@ use Filament\Support\Colors\Color;
use Filament\Widgets\AccountWidget;
use Filament\Widgets\FilamentInfoWidget;
use BezhanSalleh\FilamentShield\FilamentShieldPlugin;
use TomatoPHP\FilamentUsers\FilamentUsersPlugin;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
@@ -40,10 +39,7 @@ class AdminPanelProvider extends PanelProvider
Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Admin/Widgets'), for: 'App\Filament\Admin\Widgets')
->plugins([
FilamentShieldPlugin::make(),
FilamentUsersPlugin::make(),
])
->plugin(FilamentShieldPlugin::make())
->widgets([
AccountWidget::class,
FilamentInfoWidget::class,
@@ -62,6 +58,7 @@ class AdminPanelProvider extends PanelProvider
->authMiddleware([
Authenticate::class,
])
->plugin(\TomatoPHP\FilamentUsers\FilamentUsersPlugin::make())
->login()
->assets([
\Filament\Support\Assets\Css::make('citrus', resource_path('css/citrus.css')),
+7
View File
@@ -25,6 +25,13 @@ return [
],
],
'user_resource' => [
'enabled' => true,
'slug' => 'shield/users',
'show_model_path' => true,
'cluster' => null,
],
/*
|--------------------------------------------------------------------------
| Multi-Tenancy
+2 -2
View File
@@ -17,7 +17,7 @@ return [
* ---------------------------------------------
* The Group name of the resource.
*/
'group' => null,
'group' => '',
/**
* ---------------------------------------------
@@ -25,7 +25,7 @@ return [
* ---------------------------------------------
* The navigation sort of the resource.
*/
'navigation_sort' => 9,
'navigation_sort' => 1,
/**
* ---------------------------------------------
+1 -1
View File
@@ -1,7 +1,7 @@
<?php
return [
'group' => 'Settings',
'group' => '',
'resource' => [
'id' => 'ID',
'single' => 'User',
-3
View File
@@ -3,9 +3,6 @@
height: 6rem !important;
width: auto !important;
}
.fi-topbar-start .fi-logo {
height: 1.5rem !important;
}
/* Login sayfası brand logo boyutu */
.fi-brand-logo {