update
This commit is contained in:
@@ -24,6 +24,11 @@ class ArtworkSharedNotification extends Notification implements ShouldQueue
|
||||
return ['database'];
|
||||
}
|
||||
|
||||
public function databaseType(object $notifiable): string
|
||||
{
|
||||
return 'artwork_shared';
|
||||
}
|
||||
|
||||
public function toDatabase(object $notifiable): array
|
||||
{
|
||||
return [
|
||||
@@ -34,7 +39,7 @@ class ArtworkSharedNotification extends Notification implements ShouldQueue
|
||||
'sharer_id' => $this->sharer->id,
|
||||
'sharer_name' => $this->sharer->name,
|
||||
'sharer_username' => $this->sharer->username,
|
||||
'message' => "{$this->sharer->name} shared your artwork "{$this->artwork->title}"",
|
||||
'message' => $this->sharer->name . ' shared your artwork "' . $this->artwork->title . '"',
|
||||
'url' => "/@{$this->sharer->username}?tab=posts",
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user