isAdmin(); } public function view(User $user, ActivityLog $activityLog): bool { return $user->isAdmin(); } }