*/ abstract protected function roles(): array; public function viewAny(User $user): bool { return $this->allows($user); } public function view(User $user): bool { return $this->allows($user); } public function create(User $user): bool { return $this->allows($user); } public function update(User $user): bool { return $this->allows($user); } public function delete(User $user): bool { return $this->allows($user); } public function deleteAny(User $user): bool { return $this->allows($user); } public function reorder(User $user): bool { return $this->allows($user); } protected function allows(User $user): bool { return $user->hasRole(UserRole::Admin, ...$this->roles()); } }