Notification::make()
->info()
->title(sprintf('%s mentioned you', $comment->author->name))
->body(sprintf('Comment on %s', $comment->commentable->asset->export_name))
->actions([
ViewAction::make()
->model(AssetProductionCard::class)
->record($comment->commentable->getKey())
->schema($this->viewActionSchema())
->markAsRead(),
])
->sendToDatabase($notifiables);
Notification::make()
->info()
->title(sprintf('%s mentioned you', $comment->author->name))
->body(sprintf('Comment on %s', $comment->commentable->asset->export_name))
->actions([
ViewAction::make()
->model(AssetProductionCard::class)
->record($comment->commentable->getKey())
->schema($this->viewActionSchema())
->markAsRead(),
])
->sendToDatabase($notifiables);