Skip to content

Commit 6319f8e

Browse files
committed
Disable Filament administration
1 parent c9c2dbc commit 6319f8e

1 file changed

Lines changed: 332 additions & 0 deletions

File tree

config/filament.php

Lines changed: 332 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,332 @@
1+
<?php
2+
3+
use Filament\Http\Middleware\Authenticate;
4+
use Filament\Http\Middleware\DispatchServingFilamentEvent;
5+
use Filament\Http\Middleware\MirrorConfigToSubpackages;
6+
use Filament\Pages;
7+
use Filament\Widgets;
8+
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
9+
use Illuminate\Cookie\Middleware\EncryptCookies;
10+
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
11+
use Illuminate\Routing\Middleware\SubstituteBindings;
12+
use Illuminate\Session\Middleware\AuthenticateSession;
13+
use Illuminate\Session\Middleware\StartSession;
14+
use Illuminate\View\Middleware\ShareErrorsFromSession;
15+
16+
return [
17+
18+
/*
19+
|--------------------------------------------------------------------------
20+
| Filament Path
21+
|--------------------------------------------------------------------------
22+
|
23+
| The default is `admin` but you can change it to whatever works best and
24+
| doesn't conflict with the routing in your application.
25+
|
26+
*/
27+
28+
'path' => null,
29+
30+
/*
31+
|--------------------------------------------------------------------------
32+
| Filament Core Path
33+
|--------------------------------------------------------------------------
34+
|
35+
| This is the path which Filament will use to load its core routes and assets.
36+
| You may change it if it conflicts with your other routes.
37+
|
38+
*/
39+
40+
'core_path' => env('FILAMENT_CORE_PATH', 'filament'),
41+
42+
/*
43+
|--------------------------------------------------------------------------
44+
| Filament Domain
45+
|--------------------------------------------------------------------------
46+
|
47+
| You may change the domain where Filament should be active. If the domain
48+
| is empty, all domains will be valid.
49+
|
50+
*/
51+
52+
'domain' => env('FILAMENT_DOMAIN'),
53+
54+
/*
55+
|--------------------------------------------------------------------------
56+
| Homepage URL
57+
|--------------------------------------------------------------------------
58+
|
59+
| This is the URL that Filament will redirect the user to when they click
60+
| on the sidebar's header.
61+
|
62+
*/
63+
64+
'home_url' => '/',
65+
66+
/*
67+
|--------------------------------------------------------------------------
68+
| Brand Name
69+
|--------------------------------------------------------------------------
70+
|
71+
| This will be displayed on the login page and in the sidebar's header.
72+
|
73+
*/
74+
75+
'brand' => env('APP_NAME'),
76+
77+
/*
78+
|--------------------------------------------------------------------------
79+
| Auth
80+
|--------------------------------------------------------------------------
81+
|
82+
| This is the configuration that Filament will use to handle authentication
83+
| into the admin panel.
84+
|
85+
*/
86+
87+
'auth' => [
88+
'guard' => env('FILAMENT_AUTH_GUARD', 'web'),
89+
'pages' => [
90+
'login' => \Filament\Http\Livewire\Auth\Login::class,
91+
],
92+
],
93+
94+
/*
95+
|--------------------------------------------------------------------------
96+
| Pages
97+
|--------------------------------------------------------------------------
98+
|
99+
| This is the namespace and directory that Filament will automatically
100+
| register pages from. You may also register pages here.
101+
|
102+
*/
103+
104+
'pages' => [
105+
'namespace' => 'App\\Filament\\Pages',
106+
'path' => app_path('Filament/Pages'),
107+
'register' => [
108+
Pages\Dashboard::class,
109+
],
110+
],
111+
112+
/*
113+
|--------------------------------------------------------------------------
114+
| Resources
115+
|--------------------------------------------------------------------------
116+
|
117+
| This is the namespace and directory that Filament will automatically
118+
| register resources from. You may also register resources here.
119+
|
120+
*/
121+
122+
'resources' => [
123+
'namespace' => 'App\\Filament\\Resources',
124+
'path' => app_path('Filament/Resources'),
125+
'register' => [],
126+
],
127+
128+
/*
129+
|--------------------------------------------------------------------------
130+
| Widgets
131+
|--------------------------------------------------------------------------
132+
|
133+
| This is the namespace and directory that Filament will automatically
134+
| register dashboard widgets from. You may also register widgets here.
135+
|
136+
*/
137+
138+
'widgets' => [
139+
'namespace' => 'App\\Filament\\Widgets',
140+
'path' => app_path('Filament/Widgets'),
141+
'register' => [
142+
Widgets\AccountWidget::class,
143+
Widgets\FilamentInfoWidget::class,
144+
],
145+
],
146+
147+
/*
148+
|--------------------------------------------------------------------------
149+
| Livewire
150+
|--------------------------------------------------------------------------
151+
|
152+
| This is the namespace and directory that Filament will automatically
153+
| register Livewire components inside.
154+
|
155+
*/
156+
157+
'livewire' => [
158+
'namespace' => 'App\\Filament',
159+
'path' => app_path('Filament'),
160+
],
161+
162+
/*
163+
|--------------------------------------------------------------------------
164+
| Dark mode
165+
|--------------------------------------------------------------------------
166+
|
167+
| By enabling this feature, your users are able to select between a light
168+
| and dark appearance for the admin panel, or let their system decide.
169+
|
170+
*/
171+
172+
'dark_mode' => false,
173+
174+
/*
175+
|--------------------------------------------------------------------------
176+
| Database notifications
177+
|--------------------------------------------------------------------------
178+
|
179+
| By enabling this feature, your users are able to open a slide-over within
180+
| the admin panel to view their database notifications.
181+
|
182+
*/
183+
184+
'database_notifications' => [
185+
'enabled' => false,
186+
'polling_interval' => '30s',
187+
],
188+
189+
/*
190+
|--------------------------------------------------------------------------
191+
| Broadcasting
192+
|--------------------------------------------------------------------------
193+
|
194+
| By uncommenting the Laravel Echo configuration, you may connect your
195+
| admin panel to any Pusher-compatible websockets server.
196+
|
197+
| This will allow your admin panel to receive real-time notifications.
198+
|
199+
*/
200+
201+
'broadcasting' => [
202+
203+
// 'echo' => [
204+
// 'broadcaster' => 'pusher',
205+
// 'key' => env('VITE_PUSHER_APP_KEY'),
206+
// 'cluster' => env('VITE_PUSHER_APP_CLUSTER'),
207+
// 'forceTLS' => true,
208+
// ],
209+
210+
],
211+
212+
/*
213+
|--------------------------------------------------------------------------
214+
| Layout
215+
|--------------------------------------------------------------------------
216+
|
217+
| This is the configuration for the general layout of the admin panel.
218+
|
219+
| You may configure the max content width from `xl` to `7xl`, or `full`
220+
| for no max width.
221+
|
222+
*/
223+
224+
'layout' => [
225+
'actions' => [
226+
'modal' => [
227+
'actions' => [
228+
'alignment' => 'left',
229+
],
230+
],
231+
],
232+
'forms' => [
233+
'actions' => [
234+
'alignment' => 'left',
235+
],
236+
'have_inline_labels' => false,
237+
],
238+
'footer' => [
239+
'should_show_logo' => true,
240+
],
241+
'max_content_width' => null,
242+
'notifications' => [
243+
'vertical_alignment' => 'top',
244+
'alignment' => 'right',
245+
],
246+
'sidebar' => [
247+
'is_collapsible_on_desktop' => false,
248+
'groups' => [
249+
'are_collapsible' => true,
250+
],
251+
'width' => null,
252+
],
253+
],
254+
255+
/*
256+
|--------------------------------------------------------------------------
257+
| Favicon
258+
|--------------------------------------------------------------------------
259+
|
260+
| This is the path to the favicon used for pages in the admin panel.
261+
|
262+
*/
263+
264+
'favicon' => null,
265+
266+
/*
267+
|--------------------------------------------------------------------------
268+
| Default Avatar Provider
269+
|--------------------------------------------------------------------------
270+
|
271+
| This is the service that will be used to retrieve default avatars if one
272+
| has not been uploaded.
273+
|
274+
*/
275+
276+
'default_avatar_provider' => \Filament\AvatarProviders\UiAvatarsProvider::class,
277+
278+
/*
279+
|--------------------------------------------------------------------------
280+
| Default Filesystem Disk
281+
|--------------------------------------------------------------------------
282+
|
283+
| This is the storage disk Filament will use to put media. You may use any
284+
| of the disks defined in the `config/filesystems.php`.
285+
|
286+
*/
287+
288+
'default_filesystem_disk' => env('FILAMENT_FILESYSTEM_DRIVER', 'public'),
289+
290+
/*
291+
|--------------------------------------------------------------------------
292+
| Google Fonts
293+
|--------------------------------------------------------------------------
294+
|
295+
| This is the URL for Google Fonts that should be loaded. You may use any
296+
| font, or set to `null` to prevent any Google Fonts from loading.
297+
|
298+
| When using a custom font, you should also set the font family in your
299+
| custom theme's `tailwind.config.js` file.
300+
|
301+
*/
302+
303+
'google_fonts' => 'https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap',
304+
305+
/*
306+
|--------------------------------------------------------------------------
307+
| Middleware
308+
|--------------------------------------------------------------------------
309+
|
310+
| You may customise the middleware stack that Filament uses to handle
311+
| requests.
312+
|
313+
*/
314+
315+
'middleware' => [
316+
'auth' => [
317+
Authenticate::class,
318+
],
319+
'base' => [
320+
EncryptCookies::class,
321+
AddQueuedCookiesToResponse::class,
322+
StartSession::class,
323+
AuthenticateSession::class,
324+
ShareErrorsFromSession::class,
325+
VerifyCsrfToken::class,
326+
SubstituteBindings::class,
327+
DispatchServingFilamentEvent::class,
328+
MirrorConfigToSubpackages::class,
329+
],
330+
],
331+
332+
];

0 commit comments

Comments
 (0)