/**
  * Return categories by type
  *
  * @param $type
  * @return mixed
  */
 public function getByType($type)
 {
     $categories = Category::where('type', 'LIKE', $type)->get();
     return $categories;
 }
 /**
  * Return spec by type
  *
  * @param $type
  * @return mixed
  */
 public function getByType($type)
 {
     $category = Category::where('type', 'support')->where('name', $type);
     return Support::where('category_id', $category->id);
 }