Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
query builder object doesnt see aliases in previously built object laravel using -'php,mysql,laravel,query-builder'
query builder object doesnt see aliases in previously built object laravel ¬†using -'php,mysql,laravel,query-builder'
Here's my first query:
$base=\DB::table('user')->select('firstname as name');
and then I want to access aliased column in second query:
but I see error. I can access all columns from table user though. Is there a way to change it so I can use aliased name in the second query?
Sep 7, 2015
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please