title: How to get specific column with custom column name on Laravel
body: <p>Looking for a way to get specific columns from Laravel Eloquent with custom column names.</p>
  
  <p>E.g. get <strong>example_name</strong> as <strong>name</strong>.</p>
  
  <p>I am trying to replicate SQL Alias like <code>SELECT column_name AS alias_name</code> but without using custom attributes.</p>
  
  <p>Here is and example query in Laravel:</p>
  
  <pre><code>Table::get(['column1', 'column2', 'column3'])-&gt;all()
  </code></pre>
  
  <p>And what I would like it to get would look something like this:</p>
  
  <pre><code>Table::get(['column1', 'column2 AS column4', 'column3'])-&gt;all()
  </code></pre>