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

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([