<?php

namespace App\Events;

use App\Models\Sale;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class SaleCreated
{
    use Dispatchable, SerializesModels;

    public $sale;

    // Kita terima data Sale saat event dipanggil
    public function __construct(Sale $sale)
    {
        $this->sale = $sale;
    }
}