ikechukwukalu /
sanctumauthstarter
| 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
|
|||
| 14 | |||
| 15 | class UserEvent |
||
| 16 | { |
||
| 17 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
|
0 ignored issues
–
show
|
|||
| 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 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths