mardi 2 mai 2017

How to get price from mysql using laravel

I am trying to get the adult and child price form a table where id is 3. How can I do this using Laravel?

------------------
id adult child
------------------
2   100  50
3   200  100

I am not sure how to continue after this $price = DB::table('tours')->where('id', 3)

I would appreciate any help.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire