public static function getAdsWhereType($type) { $ads = new ads(); return $ads->where('type', '=', $type)->get(); }