Simple question - how do I order 'id' descending by last word.
The relevant part of my controller looks like this:
$images = Images::where('status', 'active')
->where('categories_id',$category->id)
->orderBy('id','DESC')
->paginate($settings->result_request)
->onEachSide(1);
For Example :
- John AA
- Kane AAA
- Matt AC
- Caesey AAB
- Morris AB
It should be like ;
- John AA
- Morris AB
- Matt AC
- Kane AAA
- Caesey AAB
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2EpQJzI
via IFTTT
Aucun commentaire:
Enregistrer un commentaire