Issues (67)

app/Events/UserDeleted.php (1 issue)

Severity
1
<?php
2
3
namespace App\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Broadcasting\InteractsWithSockets;
7
use Illuminate\Broadcasting\PresenceChannel;
8
use Illuminate\Broadcasting\PrivateChannel;
9
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
10
use Illuminate\Foundation\Events\Dispatchable;
11
use Illuminate\Queue\SerializesModels;
12
13
class UserDeleted
14
{
15
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\UserDeleted: $id, $relations, $class, $connection, $keyBy
Loading history...
16
17
    public $userId;
18
    public $organizationId;
19
20
    public function __construct(string $userId, string $organizationId = null)
21
    {
22
        $this->userId = $userId;
23
        $this->organizationId = $organizationId;
24
    }
25
}
26