Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Backup Server Laravel Package

spatie/laravel-backup-server

Securely store and manage backups from multiple Laravel apps on a dedicated backup server. Built on spatie/laravel-backup, it automatically receives and organizes incoming backups, with setup and docs tailored for Laravel deployments.

View on GitHub
Deep Wiki
Context7

title: Adding extra notification channels weight: 2

By default the package send notifications via email or Slack. You can add an extra notification channels such as Telegram or native mobile push notification, etc.

The community already has built notification channels package for a lot of services: http://laravel-notification-channels.com.

In the following example we're going to add the Pusher push notifications channel. Other notification drivers can be added in the same way.

1. Install the notification channel driver

For Pusher Push notifications, require this package

laravel-notification-channels/pusher-push-notifications

After composer has pulled in the package, just follow the installation instructions of the package to complete the installation.

2. Creating your own custom notification

Let say you want to be notified via Pusher push notifications when a backup fails. To make this happen you'll need to create your own BackupFailed notification class like the one below:

namespace App\Notifications;

use Spatie\BackupServer\Notifications\Notifications\BackupFailedNotification as BaseNotification;
use NotificationChannels\PusherPushNotifications\Message;

class BackupFailedNotification extends BaseNotification
{
    public function toPushNotification($notifiable)
    {
        return Message::create()
            ->iOS()
            ->badge(1)
            ->sound('fail')
            ->body("The backup of {$this->sourceName()} has failed");
    }
}

3. Register your custom notification in the config file

The last thing you need to do is register your custom notification in the config file.

// config/backup.php
use \NotificationChannels\PusherPushNotifications\Channel as PusherChannel

...

    'notifications' => [

        'notifications' => [
            \App\Notifications\BackupHasFailed::class => ['mail', 'slack', PusherChannel::class],
            ...
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope