-
-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
I can't set theme from my controller like this:
public function switchTheme(Request $request)
{
$request->validate([
'theme' => ['required', 'string']
]);
Theme::set($request->theme);
return redirect()->route('admin.settings.index', ['p' => 'theme'])
->with('toast', 'success')
->with('message', 'Thème ' . Theme::current() . ' appliqué avec succès');
}Theme::current() value still the Default active Theme in config/theme.php
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels