Update SettingsController.php

This commit is contained in:
Shlee 2022-05-18 11:51:21 +09:30 committed by GitHub
parent 9b792e8e98
commit 7447209236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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