Path : /var/www/html/thb_loan_system/app/Events/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/thb_loan_system/app/Events/PayOffReversed.php |
<?php namespace App\Events; use App\Models\LoanTransaction; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; class PayOffReversed { use Dispatchable, InteractsWithSockets, SerializesModels; public $loan_transaction; /** * Create a new event instance. * * @return void */ public function __construct(LoanTransaction $loan_transaction) { $this->loan_transaction=$loan_transaction; } /** * Get the channels the event should broadcast on. * * @return Channel|array */ public function broadcastOn() { return new PrivateChannel('channel-name'); } }