dimanche 24 février 2019

multi variable in where clause in Laravel

I am building a query to give a row with multi variables in Laravel. how could I create a SQL query into Laravel in this condition?

select * from Fruit where apple = red and banana = raw and orange = 1

$result = Fruit::where('apple ', red , 'banana ', raw , 'orange ', 1);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire