Created
July 11, 2016 23:10
-
-
Save nch7/10c9dfd84f074266c5846ec56823230d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model::where(['ragaca1'=>'true', 'ragaca2'=>'false'])->where(function($q){ | |
$q->orWhere('price','>=','100'); | |
$q->orWhere('noprice','=','1'); | |
})->where(function($q){ | |
$q->orWhere('price','<=','1000'); | |
$q->orWhere('noprice','=','1'); | |
})->get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment