Changed correct dashboard route and introduced a stripped down version of the pagesettings helper class from the main CMS codebase, in order to maintain compatability/functionality
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
2025-05-05 19:12:42 +02:00
parent e15d3ae146
commit 3c49569962
11 changed files with 390 additions and 13 deletions
+13 -5
View File
@@ -3,22 +3,30 @@
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Inertia\Inertia;
use App\Helpers\PageSettingsHelper;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
public function register(): void {
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
public function boot(): void {
Inertia::share([
'pageSettings' => function () {
return PageSettingsHelper::pageSettings();
},
'siteName' => function () {
return config('app.name');
},
]);
}
}