title: How to use real escape string in Laravel 5.2
body: <p>is there any built-in way or method available to implement <code>mysqli_real_escape_string</code> method. I have some custom data on which I have to implement this method. </p>
  
  <p>I tried this <code>\DB::escape()</code> method in laravel but got following error.</p>
  
  <blockquote>
    <p><strong>ErrorException in DatabaseManager.php line 296: call_user_func_array()</strong></p>
    
    <p>expects parameter 1 to be a valid callback, class
    'Illuminate\Database\MySqlConnection' does not have a method 'escape'</p>
  </blockquote>
  
  <p>while If I try manually implement this method <code>mysqli_real_escape_string</code> got following error.</p>
  
  <blockquote>
    <p><strong>ErrorException in Contact.php line 348: mysqli_real_escape_string()</strong>
    expects exactly 2 parameters, 1 given</p>
  </blockquote>
  
  <p>I did some R&amp;D, for this method <code>mysqli_real_escape_string()</code> I have to pass 2 parameter 1 is DB connection link, and 2nd is string to implement method action. but now, How I will know Laravel DB connection link?</p>
  
  <p>any idea or solution for this ?</p>