lundi 7 août 2017

How delete array of items?

I have destroy function:

public function destroy(Tag $tag)
{
    $tag->delete();
    return Response::json([], ResponseHttp::HTTP_OK);
}

If frontend send one id of post - all ok. But how delete if frontend send array of post?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uyqKuJ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire