@@ -14,6 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function notifications() |
| 16 | 16 | { |
| 17 | - return $this->morphMany(Notification::class, 'notifiable')->orderBy('created_at', 'desc');; |
|
| 17 | + return $this->morphMany(Notification::class, 'notifiable')->orderBy('created_at', 'desc'); ; |
|
| 18 | 18 | } |
| 19 | 19 | } |
@@ -19,8 +19,7 @@ |
||
| 19 | 19 | if($event->notify) |
| 20 | 20 | { |
| 21 | 21 | $notificationType = UserSettingType::where('name', 'Receive Email Notifications')->first(); |
| 22 | - $userList = User::whereHas('UserSetting', function($q) use ($notificationType) |
|
| 23 | - { |
|
| 22 | + $userList = User::whereHas('UserSetting', function($q) use ($notificationType) { |
|
| 24 | 23 | $q->where('setting_type_id', $notificationType->setting_type_id)->where('value', true); |
| 25 | 24 | })->get(); |
| 26 | 25 | |