In Laravel when we order(ORDER BY) our records by multiple fields, is it possible that we should give priority to one of the field that we want to order it.
Ex: Is it possible that we should give priority to email?
User::orderBy('name', 'DESC')
->orderBy('email', 'ASC')
->get();
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire