title: Laravel Delete Query Builder
body: <p>In Laravel 4 <code>Illuminate\Database\Query</code> in a <code>Builder</code> class <code>delete</code> function accepts <code>null</code> as an <code>id</code> parameter. And behaivor of this function implies that if I have something like:</p>
  
  <pre><code>DB::table('users')-&gt;where('id', $id)-&gt;delete();
  </code></pre>
  
  <p>And if <code>$id</code> will be passed as a <code>null</code>, it will truncate the whole table. Which means that besides standard validation, I have to  wrap every delete statement with <code>! is_null($id)</code> validation. Is it a security breach or it's considered as a standard practice?</p>