Laravel 12 Spatie Permission Package How to check user for a role

June 9, 2025

return $this->user()->can('role', RolesEnum::YourRole);