group = $group; $this->collection = $collection; } /** * Dynamic call method * @param string $method * @param array $params * @return FluentForm\App\Services\FormBuilder\Components */ public function __call($method, $params) { call_user_func_array([ $this->collection, $method ], array_merge($params, [$this->group])); return $this->collection; } }