mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
155 lines
4.7 KiB
PHP
155 lines
4.7 KiB
PHP
<?php
|
|
|
|
use Filament\Features;
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Features
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default all of Filament's features are enabled. You may enable
|
|
| or disable features as needed by your application.
|
|
|
|
|
*/
|
|
|
|
'features' => [
|
|
Features::registration(),
|
|
Features::profile(),
|
|
Features::resources(),
|
|
],
|
|
|
|
'models' => [
|
|
|
|
'user' => config('auth.providers.users.model'),
|
|
|
|
],
|
|
|
|
'prefix' => [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Route Prefix
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The default is `admin` but you can change it to whatever works best and
|
|
| doesn't conflict with the routing in your application.
|
|
|
|
|
*/
|
|
|
|
'route' => 'admin',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Component Prefix
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| If set with the default "filament", for example,
|
|
| you can reference components like:
|
|
|
|
|
| <x-filament-alert />
|
|
| <x-filament::input />
|
|
|
|
|
*/
|
|
|
|
'component' => 'filament',
|
|
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Home
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The path to the "home" route for Filament.
|
|
| This is used by Filament authentication to redirect users after login.
|
|
|
|
|
*/
|
|
|
|
'home' => 'filament.dashboard', // string or named route
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Navigation
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Navigations used by Filament.
|
|
|
|
|
*/
|
|
|
|
'nav' => [
|
|
|
|
'dashboard' => [
|
|
'path' => 'filament.dashboard', // string or named route
|
|
'active' => 'filament.dashboard', // string or named route (may also be an array @link https://github.com/dwightwatson/active)
|
|
'label' => 'Dashboard',
|
|
'icon' => 'heroicon-o-home', // optional icon name (Blade UI Kit @link https://github.com/blade-ui-kit/blade-heroicons)
|
|
'sort' => -9999, // sort order used by the navigation
|
|
],
|
|
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Components
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Below you reference all class-based components use by Filament.
|
|
| You may override these for customization in your own app.
|
|
|
|
|
*/
|
|
|
|
'components' => [
|
|
'nav' => Filament\View\Components\Nav::class,
|
|
'avatar' => Filament\View\Components\Avatar::class,
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Livewire Components
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Below you reference all the required Livewire components used by Filament.
|
|
| You may override these components for customization in your own app.
|
|
|
|
|
*/
|
|
|
|
'livewire' => [
|
|
'login' => Filament\Http\Livewire\Auth\Login::class,
|
|
'forgot-password' => Filament\Http\Livewire\Auth\ForgotPassword::class,
|
|
'reset-password' => Filament\Http\Livewire\Auth\ResetPassword::class,
|
|
'register' => Filament\Http\Livewire\Auth\Register::class,
|
|
'logout' => Filament\Http\Livewire\Auth\Logout::class,
|
|
'dashboard' => Filament\Http\Livewire\Dashboard::class,
|
|
'profile' => Filament\Http\Livewire\Profile::class,
|
|
'account' => Filament\Http\Livewire\Account::class,
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Cache
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This is the cache disk Filament will use, you may
|
|
| use any of the disks defined in the `config/filesystems.php`.
|
|
|
|
|
*/
|
|
|
|
'cache_disk' => env('FILAMENT_CACHE_DISK', 'local'),
|
|
'cache_path' => 'filament-tmp',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Storage
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This is the storage disk Filament will use to put media, you may
|
|
| use any of the disks defined in the `config/filesystems.php`.
|
|
|
|
|
*/
|
|
|
|
'storage_disk' => env('FILAMENT_STORAGE_DISK', 'public'),
|
|
|
|
];
|