Answers for "how to delete multiple delete from sql table in controller laravel"

1

how delete multiple row from relation in laravel

AppPost;
$post = Post::find($id);
Comment::where('post_id',$post)->delete();
Posted by: Guest on April-20-2021
-1

laravel delete multiple rows

$org->products()->whereIn('id', $ids)->delete()
Posted by: Guest on February-26-2021

Code answers related to "how to delete multiple delete from sql table in controller laravel"

Browse Popular Code Answers by Language