Skip to main content

How to return a column with different name in Laravel

Sometimes you have to get the column of the table with a different name. In that case you can use as in the select to get the column with a different column name.