title: use eloquent whereRaw($query) if $query not null
body: <p>i wanna use <code>whereRaw()</code> in laravel app. 
  can i use laravel eloquent <code>whereRaw($query)</code>  just when <code>$query</code> has exist?</p>