Merge pull request #3490 from shleeable/patch-25

Update LabsSettings.php - CookieJar::make() expects string, true given.
This commit is contained in:
daniel 2022-05-20 23:38:40 -06:00 committed by GitHub
commit ecffbd294e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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'
];
}
}
}

View file

@ -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');
}