/** * Load the lists associated with the campaign. * * @param array $lists * An array of list data for which to load the list models. * * @return $this */ protected function loadLists($lists) { $this->lists = []; foreach ($lists as $list) { $this->lists[] = is_subclass_of($list, BaseModel::class) ? $list : ListModel::create($list); } return $this; }