- Rollenbasierte Policies, Navigationsgruppen - Media Library (Spatie) für die kommende Bildverwaltung installiert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
186 B
PHP
14 lines
186 B
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Enums\UserRole;
|
|
|
|
class BookingPolicy extends RolePolicy
|
|
{
|
|
protected function roles(): array
|
|
{
|
|
return [UserRole::Rentals];
|
|
}
|
|
}
|