File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ @php
2
+ Filament\Facades\Filament::registerRenderHook(
3
+ 'styles.end',
4
+ fn () => new '<link href="' . mix('css/app.css') . '" rel="stylesheet" />',
5
+ );
6
+ @endphp
7
+
1
8
<x-filament::layouts.card title="Unauthorized">
2
9
Your account is not authorized to perform this action.
3
10
</x-filament::layouts.card>
Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ class MailCarrierServiceProvider extends PluginServiceProvider
40
40
*/
41
41
public function packageConfiguring (Package $ package ): void
42
42
{
43
- if (!$ this ->app ->runningInConsole ()) {
44
- Filament::registerTheme (mix ('css/app.css ' ));
45
- }
46
-
47
43
Event::listen (ServingFilament::class, $ this ->servingFilament (...));
48
44
}
49
45
@@ -111,6 +107,8 @@ public function packageBooted(): void
111
107
*/
112
108
public function servingFilament (): void
113
109
{
110
+ Filament::registerTheme (mix ('css/app.css ' ));
111
+
114
112
// Edit the navigation
115
113
Filament::navigation (
116
114
fn (NavigationBuilder $ builder ): NavigationBuilder => $ builder
You can’t perform that action at this time.
0 commit comments