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