Skip to content

Instantly share code, notes, and snippets.

@lemesdaniel
Created September 17, 2015 19:26
Show Gist options
  • Save lemesdaniel/4f3385e8c070ab56ecd8 to your computer and use it in GitHub Desktop.
Save lemesdaniel/4f3385e8c070ab56ecd8 to your computer and use it in GitHub Desktop.
$wows = $this->wows
->with('Competitor')
->where('step_id', 1);
if(isset($inputs['sex']) and !empty($inputs['sex']))
$wows->where('sex', $inputs['sex']);
if(isset($inputs['type']) and !empty($inputs['type']))
$wows->where('type', $inputs['type']);
if(isset($inputs['open']) and !empty($inputs['open']))
$wows->where('open_id', $inputs['open']);
$wows->orderBy('time')
->orderBy('time_break')
->get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment