Laravel 3 Eloquent Wie wählen Sie die Spalte als

Ich versuche, herauszufinden, wie man eine Spalte einen alias mit Eloquent.

So, in anderen Worten, wie führe ich die folgende mysql-Abfrage mit Eloquent?

SELECT occupation AS test FROM users WHERE occupation = 'PIMP';

Thx in adv!

InformationsquelleAutor darksoulsong | 2013-09-04
Schreibe einen Kommentar