I am developing a Laravel application.
There are a lot of CRUD sample application on the internet.
Most of them are like this,
- create GET articles/create
- update POST articles/store
- edit GET articles/{id}/edit
- show GET articles/{id}
- delete POST articles/{id}/destroy
Generally it works fine.
But as for delete, I am developing an application that can enable multiple row deletion at once.
I tried to loop this function for the first time, and found that it is not good idea to execute form post again and again.
<form method="post" action="/articles/{{$aaa->id}}/destroy">
<input type="hidden" name="_token" value="{{csrf_token()}}">
</form>
How do I delete many rows at once in my Laravel application?
Are there any solutions?