mercredi 30 août 2017

Laravel - How to write Multiple conditions in where clause?

Actually my query is - SELECT * FROM company WHERE status<>$status AND type=$b1 AND type=$b2

How to do this in laravel...?

I did this in laravel but it is not working..

$data['Company']=DB::table('company')->where([["status","<>",$status], ["type","=",$b1],["type","=",$b2]])->get();

Please help me on this..



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire