title: Laravel having column name in where clause static method
body: <p>Recently I just realized that Laravel generates a static method with column name when joined in a where clause using camel case </p>
  
  <p>example </p>
  
  <pre><code>$user = User::whereName('john')-&gt;first(); // added `name` as a column name
  </code></pre>
  
  <p>When called this code to SQL it generates</p>
  
  <pre><code>$user = User::whereName('john')-&gt;toSql();
  
  //it returns
  select * from `users` where `name` = ?
  </code></pre>
  
  <p>This indeed gives expected result as it returns a user with name <code>john</code>.</p>
  
  <p>I have searched Laravel documentation but can't find this function or where it was defined.</p>
  
  <p>All I need is clarification if this method is good or best so that I can continue using it and as well know how the method is generated inside Laravel framework or any other means</p>