Laravel - delete specific post from logged in user

     

I'm trying to make a delete button on a post from a user that is logged in. The logged in user can see other peoples posts and only delete his own. I already managed that the delete button only appears on his own posts. I think the problem is in the route in the view..


Controller:


public function destroy($id)  {   $post = Post::find($id);   $post->delete;
return view('/home' [   'posts' => $post   ]);  }  

view: