Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Wie verkettet man Spalten mit 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');