Download app/Events/IyzicoLifetimeEvent.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 805 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Events/IyzicoLifetimeEvent.php
- Command line
-
hf download hf://pnacorp/magicai/app/Events/IyzicoLifetimeEvent.php
-
curl -L -o IyzicoLifetimeEvent.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Events/IyzicoLifetimeEvent.php
805 Bytes
| namespace App\Events; | |
| use Illuminate\Broadcasting\InteractsWithSockets; | |
| use Illuminate\Broadcasting\PrivateChannel; | |
| use Illuminate\Foundation\Events\Dispatchable; | |
| use Illuminate\Queue\SerializesModels; | |
| class IyzicoLifetimeEvent | |
| { | |
| use Dispatchable; | |
| use InteractsWithSockets; | |
| use SerializesModels; | |
| public $status; | |
| public $orderIds; | |
| /** | |
| * Create a new event instance. | |
| */ | |
| public function __construct($status, $orderIds) | |
| { | |
| $this->status = $status; | |
| $this->orderIds = $orderIds; | |
| } | |
| /** | |
| * Get the channels the event should broadcast on. | |
| * | |
| * @return array<int, \Illuminate\Broadcasting\Channel> | |
| */ | |
| public function broadcastOn(): array | |
| { | |
| return [ | |
| new PrivateChannel(1), | |
| ]; | |
| } | |
| } | |