ActivityApplyFailNotification.php 972 Bytes
<?php

namespace App\Notifications;

use App\Models\Activity;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;

class ActivityApplyFailNotification extends Notification implements ShouldQueue
{
    use Queueable;

    /**
     * @var \App\Models\Activity
     */
    public Activity $activity;

    /**
     * @var string
     */
    public string $msg;

    /**
     * Create a new notification instance.
     *
     * @param \App\Models\Activity $activity
     * @param string               $msg
     */
    public function __construct(Activity $activity, string $msg)
    {
        $this->afterCommit();
        $this->activity = $activity;
        $this->msg      = $msg;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param mixed $notifiable
     * @return array<int,string>
     */
    public function via(mixed $notifiable): array
    {
        return [];
    }

}