title: Laravel SelectRaw vs DB:Raw
body: <p><strong>First:</strong></p>
  
  <pre><code> DB::table('someTable')
  -&gt;selectRaw('count(*), min(some_field) as someMin, max(another_field) as someMax')
  -&gt;get();
  </code></pre>
  
  <p><strong>Second:</strong></p>
  
  <pre><code>DB::table('someTable')-&gt;select(
  array(
          DB::raw('min(some_field) as someMin'),
          DB::raw('max(another_field) as someMax'),
          DB::raw('COUNT(*) as `count`')
      )
  )-&gt;get()
  </code></pre>
  
  <blockquote>
    <p>The above two query result is same , but my question is there any
    possible security issues(SQL injections) with these two queries if i
    use user inputs directly in where conditions.</p>
  </blockquote>