title: How to prevent SQL injection in Laravel?
body: <p>In my controller I have this code:</p>
  
  <pre><code>public function create($brand_id)
  {
      Brand::findOrFail($brand_id);
  }
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>public function search() 
  {
      $q = Input::get('q');
      $brands = Brand::where('title', 'LIKE', '%'.$q.'%')-&gt;take(80)-&gt;get();
  </code></pre>
  
  <p>Is this code safe? By "safe" I mean SQL injection safe. Or should I do some variable clean up here? And what is the best way for cleaning up user input?
  Thanks a lot for helping me :)</p>