I have a table called tenantdetails which contains
tenantdetails
Tenant_Id | First_Name | Last_Name | ........
and I want to retrieve Firs
Firs
An easy way is to use selectRaw. It was implemented by Tailor in Jan 30, 2014
selectRaw
Jan 30, 2014
Source
Tenant::selectRaw('CONCAT(First_Name, " ", Last_Name) as TenantFullName, id')->orderBy('First_Name')->lists('TenantFullName', 'id'))