22
22
Console \Commands \Seed ,
23
23
Console \Commands \SyncStats ,
24
24
Frontend \Presets \AbstractPreset ,
25
- Frontend \Presets \BootstrapPreset ,
25
+ Frontend \Presets \BladeBootstrapPreset ,
26
26
Frontend \Presets \PresetRegistry ,
27
- Frontend \Presets \LivewirePreset ,
28
- Frontend \Presets \TailwindPreset ,
27
+ Frontend \Presets \LivewireTailwindPreset ,
28
+ Frontend \Presets \BladeTailwindPreset ,
29
29
Frontend \Stacks \Blade ,
30
30
Frontend \Stacks \StackInterface ,
31
31
Frontend \Stacks \Livewire ,
@@ -50,7 +50,7 @@ public function __construct($app)
50
50
parent ::__construct ($ app );
51
51
52
52
foreach (self ::CONFIG_FILES as $ key ) {
53
- $ this ->mergeConfigFrom (__DIR__ . "/../config/ {$ key }.php " , "forum. {$ key }" );
53
+ $ this ->mergeConfigFrom (__DIR__ . "/../config/ {$ key }.php " , "forum. {$ key }" );
54
54
}
55
55
56
56
$ this ->isFrontendEnabled = config ('forum.frontend.enable ' );
@@ -59,9 +59,9 @@ public function __construct($app)
59
59
}
60
60
61
61
$ presetRegistry = new PresetRegistry ;
62
- $ presetRegistry ->register (new LivewirePreset );
63
- $ presetRegistry ->register (new BootstrapPreset );
64
- $ presetRegistry ->register (new TailwindPreset );
62
+ $ presetRegistry ->register (new LivewireTailwindPreset );
63
+ $ presetRegistry ->register (new BladeBootstrapPreset );
64
+ $ presetRegistry ->register (new BladeTailwindPreset );
65
65
66
66
$ app ->instance (PresetRegistry::class, $ presetRegistry );
67
67
@@ -104,12 +104,12 @@ public function boot(Router $router, GateContract $gate)
104
104
105
105
if ($ this ->isFrontendEnabled ) {
106
106
$ routerConfig = $ this ->frontendStack ->getRouterConfig ();
107
- $ router ->group ($ routerConfig , fn () => $ this ->loadRoutesFrom ($ this ->frontendStack ->getRoutesPath ()));
107
+ $ router ->group ($ routerConfig , fn () => $ this ->loadRoutesFrom ($ this ->frontendStack ->getRoutesPath ()));
108
108
109
109
$ viewsPath = $ this ->frontendPreset ->getViewsPath ();
110
110
$ this ->loadViewsFrom ($ viewsPath , 'forum ' );
111
111
112
- View::composer ('forum.master ' , function ($ view ) {
112
+ View::composer ('forum::layouts.main ' , function ($ view ) {
113
113
if (Auth::check ()) {
114
114
$ nameAttribute = config ('forum.integration.user_name ' );
115
115
$ view ->username = Auth::user ()->{$ nameAttribute };
@@ -120,7 +120,7 @@ public function boot(Router $router, GateContract $gate)
120
120
$ loader ->alias ('Forum ' , config ('forum.frontend.utility_class ' ));
121
121
}
122
122
123
- $ this ->loadTranslationsFrom (__DIR__ . '/../translations ' , 'forum ' );
123
+ $ this ->loadTranslationsFrom (__DIR__ . '/../translations ' , 'forum ' );
124
124
125
125
$ this ->registerPolicies ($ gate );
126
126
@@ -141,7 +141,7 @@ private function publishConfig(): void
141
141
{
142
142
$ configPathMap = [];
143
143
foreach (self ::CONFIG_FILES as $ key ) {
144
- $ configPathMap [__DIR__ . "/../config/ {$ key }.php " ] = config_path ("forum/ {$ key }.php " );
144
+ $ configPathMap [__DIR__ . "/../config/ {$ key }.php " ] = config_path ("forum/ {$ key }.php " );
145
145
}
146
146
147
147
$ this ->publishes ($ configPathMap , 'config ' );
@@ -150,14 +150,14 @@ private function publishConfig(): void
150
150
private function publishMigrations (): void
151
151
{
152
152
$ this ->publishes ([
153
- __DIR__ . '/../database/migrations/ ' => database_path ('migrations ' ),
153
+ __DIR__ . '/../database/migrations/ ' => database_path ('migrations ' ),
154
154
], 'migrations ' );
155
155
}
156
156
157
157
private function publishTranslations (): void
158
158
{
159
159
$ this ->publishes ([
160
- __DIR__ . '/../translations/ ' => function_exists ('lang_path ' ) ? lang_path ('vendor/forum ' ) : resource_path ('lang/vendor/forum ' ),
160
+ __DIR__ . '/../translations/ ' => function_exists ('lang_path ' ) ? lang_path ('vendor/forum ' ) : resource_path ('lang/vendor/forum ' ),
161
161
], 'translations ' );
162
162
}
163
163
@@ -166,9 +166,8 @@ private function enableApi(Router $router): void
166
166
$ config = config ('forum.api.router ' );
167
167
$ config ['middleware ' ][] = ResolveApiParameters::class;
168
168
169
- $ router ->group ($ config , function ($ router )
170
- {
171
- $ this ->loadRoutesFrom (__DIR__ .'/../routes/api.php ' );
169
+ $ router ->group ($ config , function ($ router ) {
170
+ $ this ->loadRoutesFrom (__DIR__ . '/../routes/api.php ' );
172
171
});
173
172
}
174
173
0 commit comments