🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:RoleDetachedEvent.php
<?php declare(strict_types=1); namespace Spatie\Permission\Events; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Collection; use Spatie\Permission\Contracts\Role; class RoleDetachedEvent { use Dispatchable; use InteractsWithSockets; use SerializesModels; /** * Internally the HasRoles trait passes an array of role ids (eg: int's or uuid's) * Theoretically one could register the event to other places passing other types * So a Listener should inspect the type of $rolesOrIds received before using. * * @param array|int[]|string[]|Role|Role[]|Collection $rolesOrIds */ public function __construct(public Model $model, public mixed $rolesOrIds) {} }
Save Changes
Cancel
Create New File
Create New Folder