Reputation: 83
I have my table data:
id song_id playlist_id
1 2 5
2 2 4
I want to remove it by if I give
song_id playlist_id
2 4 success
2 3 fail
Please help me thanks Noted: I use laravel custom query builder
Upvotes: 0
Views: 53
Reputation: 2543
You can use
\DB::('table')->where('song_id',2)->where('playlist_id',4)->delete();
Upvotes: 4