Level 60
You need a function which takes an array, nothing special
public function destroyAll(array $ids)
{
Model::whereIn('id', $ids)->delete();
}
Summer Sale! All accounts are 50% off this week.
d
You need a function which takes an array, nothing special
public function destroyAll(array $ids)
{
Model::whereIn('id', $ids)->delete();
}
Please or to participate in this conversation.