50 lines
1.2 KiB
PHP
50 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Filament\Resources\Events\Pages\ListEvents;
|
|
use Carbon\Carbon;
|
|
use Filament\Support\Colors\Color;
|
|
use Filament\Support\Facades\FilamentColor;
|
|
use Filament\Support\Facades\FilamentView;
|
|
use Filament\View\PanelsRenderHook;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\View\View;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
FilamentView::registerRenderHook(
|
|
PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE,
|
|
fn (): View => view('filament.hooks.table-bettype-filters'),
|
|
scopes: [
|
|
ListEvents::class,
|
|
]
|
|
);
|
|
|
|
Carbon::setLocale(app()->getLocale());
|
|
|
|
FilamentColor::register([
|
|
'danger' => Color::Red,
|
|
'gray' => Color::Zinc,
|
|
'primary' => Color::Blue,
|
|
'success' => Color::Green,
|
|
'warning' => Color::Yellow,
|
|
'info' => Color::Indigo,
|
|
]);
|
|
|
|
}
|
|
}
|