ActivityApplySuccessNotification.php 869 Bytes
<?php

namespace App\Notifications;

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

class ActivityApplySuccessNotification extends Notification implements ShouldQueue
{
    use Queueable;

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

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

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