Supprimer et retourner la réponse et nocontent Laravel
public function destroy(Post $post)
{
$post->delete();
return response()->noContent();
}
Xanthous Xenomorph
public function destroy(Post $post)
{
$post->delete();
return response()->noContent();
}