Skip to content

Commit

Permalink
Fix error when sending spatie backup notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Rumpel committed Oct 25, 2018
1 parent 1ab919a commit 8b8cb5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function boot()
NovaNotification::create([
'notification' => get_class($event->notification),
'notifiable_type' => get_class($event->notifiable),
'notifiable_id' => $event->notifiable->id,
'notifiable_id' => $event->notifiable->id ?? '?',
'channel' => $event->channel,
'failed' => false,
]);
Expand All @@ -44,7 +44,7 @@ public function boot()
NovaNotification::create([
'notification' => get_class($event->notification),
'notifiable_type' => get_class($event->notifiable),
'notifiable_id' => $event->notifiable->id,
'notifiable_id' => $event->notifiable->id ?? '',
'channel' => $event->channel,
'failed' => true,
]);
Expand Down

0 comments on commit 8b8cb5a

Please sign in to comment.