File manager - Edit - /var/www/payraty/hris/vendor/spatie/laravel-permission/src/Events/RoleDetached.php
Back
<?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 RoleDetached { use Dispatchable; use InteractsWithSockets; use SerializesModels; /** * Internally the HasRoles trait passes $rolesOrIds as a single Eloquent record * Theoretically one could register the event to other places with an array etc * 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) {} }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings