Merge pull request #3490 from shleeable/patch-25

Update LabsSettings.php - CookieJar::make() expects string, true given.
pull/3502/head
daniel 2022-05-20 23:38:40 -06:00 zatwierdzone przez GitHub
commit ecffbd294e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -36,7 +36,7 @@ trait LabsSettings {
$cookie = Cookie::forget('dark-mode');
if($request->has('dark_mode')) {
if($request->dark_mode == 'on') {
$cookie = Cookie::make('dark-mode', true, 43800);
$cookie = Cookie::make('dark-mode', 'true', 43800);
}
}
@ -93,4 +93,4 @@ trait LabsSettings {
'royal'
];
}
}
}

Wyświetl plik

@ -163,7 +163,7 @@ class SettingsController extends Controller
$mode = $request->input('mode');
if($mode == 'dark') {
$cookie = Cookie::make('dark-mode', true, 43800);
$cookie = Cookie::make('dark-mode', 'true', 43800);
} else {
$cookie = Cookie::forget('dark-mode');
}