protected function getComponentId($name)
    {
        $where  = [
            'name'    => $name,
            'type_id' => app(ComponentTypes::class)->newInstance()->getDefault()->id
        ];
        $exists = $this->makeModel()->where($where)->first();
        if (!is_null($exists)) {
            return $exists->id;
        }
        $component = $this->makeModel()->getModel()->newInstance($where);
        $component->save();
        return $component->id;
    }