【view】
<x-primary-button class="bg-red-700 float-right ml-4" onClick="return confirm('本当に削除しますか?');">削除</x-primary-button>
【Controller】
public function destroy(Post $post)
{
$post->delete();
return redirect()->route('post.index')->with('message', '投稿を削除しました');
}