isAdmin() || $post->author_id === $user->id; } public function delete(User $user, Post $post): bool { return $user->isAdmin() || $post->author_id === $user->id; } }