force dark mode in Laravel Nova

This commit is contained in:
Benjamin Takats
2022-11-29 21:31:45 +01:00
parent ecdfb0b4b9
commit e907b1b6cb
8 changed files with 118 additions and 13 deletions

View File

@@ -15,10 +15,21 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
public function boot()
{
parent::boot();
Nova::withBreadcrumbs();
// disable theme switcher
Nova::withoutThemeSwitcher();
// login with user id 1, if we are in local environment
if (app()->environment('local')) {
auth()->loginUsingId(1);
}
Nova::footer(function ($request) {
// return MIT license and date
return sprintf("%s %s - %s", date('Y'), config('app.name'), __('MIT License'));
});
}
/**