Hi bro, i think you look something like that
Song id is 0
<input type="checkbox" name="songs[0][id]" />
<input type="text" name="songs[0][name]" value="new name for song 1" />
Song id is 1
<input type="checkbox" name="songs[1][id]" />
<input type="text" name="songs[1][name]" value="new name for song 2" />
When you post that form, you will get
public function update(Request $request)
{
foreach($request->songs as $song) {
$songId = $song['id'];
$songName = $song['name'];
//Now if you want you can find and delete or update
}
}