Test Setup Failed
Push — dev6 ( 81193f...01d104 )
by Ron
22:34
created

NewUserCreated::broadcastOn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Events;
4
5
use App\Models\User;
6
use Illuminate\Broadcasting\Channel;
7
use Illuminate\Broadcasting\InteractsWithSockets;
8
use Illuminate\Broadcasting\PresenceChannel;
9
use Illuminate\Broadcasting\PrivateChannel;
10
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
11
use Illuminate\Foundation\Events\Dispatchable;
12
use Illuminate\Queue\SerializesModels;
13
14
class NewUserCreated
15
{
16
    use Dispatchable, InteractsWithSockets, SerializesModels;
1 ignored issue
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\NewUserCreated: $id, $relations, $class, $connection, $keyBy
Loading history...
17
18
    public $user;
19
20
    /**
21
     * Create a new event instance.
22
     */
23
    public function __construct(User $user)
24
    {
25
        $this->user = $user;
26
    }
27
28
    /**
29
     * Get the channels the event should broadcast on.
30
     *
31
     * @return \Illuminate\Broadcasting\Channel|array
32
     */
33
    // public function broadcastOn()
34
    // {
35
    //     return new PrivateChannel('channel-name');
36
    // }
37
}
38