title: Laravel: Insert Hash into query
body: <p>In Codeigniter, I used to use</p>
  
  <pre><code>$this-&gt;db-&gt;where('sha1(id)', $id);
  </code></pre>
  
  <p>How can I achieve this in Laravel?</p>
  
  <pre><code>\DB::table('')-&gt;where('sha1(id)', $id); ?
  \DB::table('')-&gt;whereRaw("sha1(id) = '$id'"); ?
  </code></pre>
  
  <p>If I'm about to use Laravel Hash facade, how can I achieve it?</p>
  
  <pre><code>\DB::table('')-&gt;where('\Hash::make(id)', $id);
  </code></pre>
  
  <p>My main goal is to searching into table where hash(id -> from table) = $id -> (method param)</p>