how delete multiple row from relation in laravel

113

how delete multiple row from relation in laravel -

App\Post;
$post = Post::find($id);
Comment::where('post_id',$post)->delete();

laravel delete multiple rows -

$org->products()->whereIn('id', $ids)->delete()

Comments

Submit
0 Comments