Issues (44)

src/Events/UserEvent.php (2 issues)

1
<?php
2
3
namespace Ikechukwukalu\Sanctumauthstarter\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
use App\Models\User;
0 ignored issues
show
The type App\Models\User was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
15
class UserEvent
16
{
17
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Ikechukwukalu\Sanctumauthstarter\Events\UserEvent: $collectionClass, $id, $relations, $class, $connection, $keyBy
Loading history...
18
19
    public User $user;
20
21
    public function __construct(User $user)
22
    {
23
        $this->user = $user;
24
    }
25
26
    public function broadcastOn()
27
    {
28
        return new PrivateChannel('channel-name');
29
    }
30
}
31