Update AuthLogin listener

This commit is contained in:
Daniel Supernault 2018-12-21 12:54:14 -07:00
parent c819bfe351
commit abc738a532
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ class AuthLogin
public function handle($event)
{
$user = $event->user;
if(!$user) {
return;
}
if (empty($user->settings)) {
DB::transaction(function() use($user) {
UserSetting::firstOrCreate([