mirror of
https://github.com/filamentphp/filament.git
synced 2026-08-29 03:09:12 +08:00
33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
<?php
|
|
|
|
use Filament\FilamentServiceProvider;
|
|
use Filament\Forms\FormsServiceProvider;
|
|
use Filament\Notifications\NotificationsServiceProvider;
|
|
use Filament\SpatieLaravelTranslatablePluginServiceProvider;
|
|
use Filament\Support\SupportServiceProvider;
|
|
use Filament\Tables\TablesServiceProvider;
|
|
use Livewire\LivewireServiceProvider;
|
|
use Orchestra\Testbench\Concerns\CreatesApplication;
|
|
use Orchestra\Testbench\Foundation\Application;
|
|
|
|
$basePathLocator = new class()
|
|
{
|
|
use CreatesApplication;
|
|
};
|
|
|
|
$app = (new Application($basePathLocator::applicationBasePath()))
|
|
->configure([
|
|
'enables_package_discoveries' => true,
|
|
])
|
|
->createApplication();
|
|
|
|
$app->register(LivewireServiceProvider::class);
|
|
$app->register(FilamentServiceProvider::class);
|
|
$app->register(FormsServiceProvider::class);
|
|
$app->register(NotificationsServiceProvider::class);
|
|
$app->register(SpatieLaravelTranslatablePluginServiceProvider::class);
|
|
$app->register(SupportServiceProvider::class);
|
|
$app->register(TablesServiceProvider::class);
|
|
|
|
return $app;
|