title: Laravel 5.5 Eloquent not putting quote marks around a search string
body: <p>I am trying to pass a value from the URL to a controller to get data with the string from the URL, here is the route that passes the data to the controller this is working fine, and the correct values are making it to the controller</p>
  
  <pre><code>Route::middleware('auth:api')-&gt;get('test/{name}', 'EmployeeController@getAllEmployees');
  </code></pre>
  
  <p>I have tried $name, "$name" , '$name' , '%' . $name . '%' , '%$name%'</p>
  
  <pre><code>class EmployeeController extends Controller
  {
      public function getAllEmployees($name)
      {
          $model = Employee::where('Name', 'LIKE',  $name)-&gt;get();
          return $model-&gt;tojson();
      }
  }
  </code></pre>
  
  <p>Here is the error, as you can see the value doesn't have any quote marks around it which is what sqlsrv is tripping up with when running the query </p>
  
  <pre><code>"SQLSTATE[42S02]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid object name 'Tabel_Name'. (SQL: select * from [Tabel_Name] where [Name] LIKE test)",
  </code></pre>
  
  <p>what am i doing wrong?</p>
  
  <p>Laravel 5.5
  sqlsrv 
  php 7.0</p>