| 123456789101112131415161718192021 | <?php
namespace App\Events;
use App\Models\Setting\Currency;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class CurrencyRateChanged
{
    use Dispatchable;
    use InteractsWithSockets;
    use SerializesModels;
    public function __construct(
        public Currency $currency,
        public float $oldRate,
        public float $newRate
    ) {}
}
 |