Spatie\Backup\Notifications\Notifications\HealthyBackupWasFound::toSlack PHP Method

toSlack() public method

public toSlack ( ) : Illuminate\Notifications\Messages\SlackMessage
return Illuminate\Notifications\Messages\SlackMessage
    public function toSlack() : SlackMessage
    {
        return (new SlackMessage())->success()->content("The backups for `{$this->applicationName()}` are healthy")->attachment(function (SlackAttachment $attachment) {
            $attachment->fields($this->backupDestinationProperties()->toArray());
        });
    }
HealthyBackupWasFound