|
@@ -2121,7 +2121,11 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
|
*/
|
|
|
public function getComponentType(array $data): array
|
|
|
{
|
|
|
- $component_type = ComponentType::get()->all();
|
|
|
+ $where = [];
|
|
|
+ if(isset($data['id']) && !empty($data['id'])){
|
|
|
+ $where['id'] = $data['id'];
|
|
|
+ }
|
|
|
+ $component_type = ComponentType::where($where)->get()->all();
|
|
|
$article = Article::first()->toArray();
|
|
|
$category = WebsiteCategory::first()->toArray();
|
|
|
$footer_category = FooterCategory::first()->toArray();
|