From 2b13367970d338144d79ed9fc1418ff57e0b8350 Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Tue, 19 Jul 2022 14:11:09 -0600 Subject: [PATCH] adding a note about language setter in successful login event --- src/app/Listeners/SuccessfulLogin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/Listeners/SuccessfulLogin.php b/src/app/Listeners/SuccessfulLogin.php index f57f065..96e9452 100644 --- a/src/app/Listeners/SuccessfulLogin.php +++ b/src/app/Listeners/SuccessfulLogin.php @@ -29,6 +29,10 @@ class SuccessfulLogin public function handle(Login $event): void { Session::put('timezone_name', $event->user->timezone_name); + + // TODO: this may need to be reworked so that the language is stored + // in a cookie and attempted to be retrieved from there + // first before pulling from the database. Session::put('language', $event->user->language->locale); // Optionally log the info