26 lines
479 B
PHP
26 lines
479 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Events;
|
||
|
|
||
|
use App\Models\Coupon;
|
||
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
||
|
use Illuminate\Foundation\Events\Dispatchable;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
|
||
|
class CouponUsedEvent
|
||
|
{
|
||
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||
|
|
||
|
public Coupon $coupon;
|
||
|
|
||
|
/**
|
||
|
* Create a new event instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct(Coupon $coupon)
|
||
|
{
|
||
|
$this->coupon = $coupon;
|
||
|
}
|
||
|
}
|