Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Como concatenar colunas com 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');