protected function setResourceOnActions() { $this->actions->each(function ($action) { $action->setResource($this); }); }