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

toSlack() public method

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