I make this query:
$costo = Habitacion::where("id","=", $habestatus)->select('hab_costo')->first();
* Habestatus is a variable that has the id of the room.
and when you print the result, you throw this at me:
{"hab_costo":2000}...
asked by
05.03.2018 / 23:28