File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 4343 "require" : {
4444 "php" : " ^8.3" ,
4545 "bezhansalleh/filament-language-switch" : " ^3.1" ,
46+ "bezhansalleh/filament-panel-switch" : " ^1.1" ,
4647 "bezhansalleh/filament-shield" : " ^3.3" ,
4748 "datalinx/php-utils" : " ^2.5" ,
4849 "dutchcodingcompany/filament-developer-logins" : " ^1.6" ,
Original file line number Diff line number Diff line change 55use BezhanSalleh \FilamentShield \Facades \FilamentShield ;
66use BezhanSalleh \FilamentShield \FilamentShieldPlugin ;
77use BezhanSalleh \FilamentShield \Middleware \SyncShieldTenant ;
8+ use BezhanSalleh \PanelSwitch \PanelSwitch ;
89use DutchCodingCompany \FilamentDeveloperLogins \FilamentDeveloperLoginsPlugin ;
910use Eclipse \Common \CommonPlugin ;
1011use Eclipse \Common \Providers \GlobalSearchProvider ;
@@ -230,5 +231,20 @@ public function boot(): void
230231
231232 // Load customized translations for Filament Shield
232233 $ this ->loadTranslationsFrom (__DIR__ .'/../../resources/lang/vendor/filament-shield ' , 'filament-shield ' );
234+
235+ // Configure Panel Switch
236+ PanelSwitch::configureUsing (function (PanelSwitch $ panelSwitch ) {
237+ $ panelSwitch
238+ ->simple ()
239+ ->icons ([
240+ 'admin ' => 'heroicon-s-cog-6-tooth ' ,
241+ 'frontend ' => 'heroicon-s-globe-alt ' ,
242+ ])
243+ ->labels ([
244+ 'admin ' => 'Admin Panel ' ,
245+ 'frontend ' => 'Frontend ' ,
246+ ])
247+ ->visible (fn (): bool => auth ()->check ());
248+ });
233249 }
234250}
You can’t perform that action at this time.
0 commit comments