public function toManage($models, array $attributes = []) { if (is_array($models)) { foreach ($models as $model) { $this->to('*', $model, $attributes); } } else { $this->to('*', $models, $attributes); } }