Blame view

app/Events/MessageSended.php 405 Bytes
7d97dde35   Fedor   task-132985 minor...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  
  namespace App\Events;
  
  use App\Models\Message;
  use Illuminate\Broadcasting\InteractsWithSockets;
  use Illuminate\Foundation\Events\Dispatchable;
  use Illuminate\Queue\SerializesModels;
  
  class MessageSended
  {
      use Dispatchable, InteractsWithSockets, SerializesModels;
  
      public Message $message;
  
      public function __construct(Message $message)
      {
          $this->message = $message;
      }
  }