We were talking about Laravel 5 on its release, we are pleased today to welcome Laravel 5.1
I have this query I want to get data from the database with alphabetically sorting
$states = State::where('status', 1)->sortBy('name')->get();
Aucun commentaire:
Enregistrer un commentaire