SaleDeleted.php

InfoShop · app/Notifications/SaleDeleted.php · php · MIT
crm

Notifies sale deletion via email, Telegram, and DB channels.

// Source: https://github.com/NifrasUsanar/InfoShop | License: MIT | Copyright 2025 Nifras Usanar
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
use NotificationChannels\Telegram\TelegramMessage;
use App\Models\Setting;
use Illuminate\Support\Facades\Auth;

class SaleDeleted extends Notification
{
    use Queueable;

    public $sale;
    protected $botToken;
    /**
     * Create a new notification instance.
     */
    public function __construct($sale, $botToken='')
    {
        $this->botToken = $botToken;
        $this->sale = $sale;
    }

    /**
     * Get the n

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key