public static function findPlace($nombre = false, $ubicacion = false) { $busqueda = Negocio::select('*'); if ($ubicacion) { $busqueda->where(DB::raw('concat_ws(" ", calle, numeroExterior, numeroInterior,colonia, cp, delegacion, ciudad, municipio, estado, pais)'), 'like', '%' . $ubicacion . '%'); } if ($nombre) { $busqueda->where('nombre', 'like', $nombre); } return $busqueda->first(); }