AppPost;
$post = Post::find($id);
Comment::where('post_id',$post)->delete();
public function destroy($id)
{
if (is_array($id))
{
Product::destroy($id);
}
else
{
Product::findOrFail($id)->delete();
}
// redirect or whatever...
}
$org->products()->whereIn('id', $ids)->delete()