filament_inventory/app/Providers/AppServiceProvider.php
Anna-Sara Sélea 314854297c Translation
2025-03-24 15:10:22 +01:00

38 lines
832 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\ServiceProvider;
use BezhanSalleh\FilamentLanguageSwitch\LanguageSwitch;
use Filament\Support\Colors\Color;
use Filament\Support\Facades\FilamentColor;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Vite::prefetch(concurrency: 3);
LanguageSwitch::configureUsing(function (LanguageSwitch $switch) {
$switch
->locales(['en','sv']); // also accepts a closure
});
FilamentColor::register([
'primary' => Color::hex('#0080bb'),
]);
}
}