public function show(int $id): \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\Foundation\Application
{
$post=Post::find($id);
$comments=$post->comments();
foreach ($comments as $cm){
dd($cm);
}
}