title: Laravel 5: best way to modify column name in model
body: <p>What is the best way to modify column name before retrieve data from the model, ex: change <code>id</code> to be <code>uid</code></p>
  
  <pre><code>$data = user::all(); //return array('uid'=&gt;1,'uid'=&gt;2 ... etc)
  </code></pre>
  
  <p>thanks,</p>