Skip to content

Instantly share code, notes, and snippets.

View guillermoprojaslema's full-sized avatar
😀

Guillermo Rojas guillermoprojaslema

😀
View GitHub Profile
/7WEbPayController.php
public function init(Request $values)
{
// Guardando orden en base de datos
$order = OrdenPago::find($values->orden_id);
/** URL de retorno */
$urlReturn = route('webpay.voucher');
/** URL Final */
$urlFinal = route('webpay.finish');
$query_properties = Property::whereBetween('price', [$prices[0], $prices[1]])
->where('property_type', $request->property_type)
->get();
$query_properties->filter(function ($property, $request) {
if ($property->building_id) {
return $property->building->neighborhood->place->city->state->id == $request->state_id;
} else {
return $property->neighborhood->place->city->state->id == $request->state_id;