Mysql
 sql >> Database >  >> RDS >> Mysql

Come concatenare le colonne con Laravel 4 Eloquent?

Tenant::select('Tenant_Id', DB::raw('CONCAT(First_Name, " ", Last_Name) AS full_name'))
    ->orderBy('First_Name')
    ->lists('full_name', 'Tenant_Id');