So laravel eloquent is using id asc
as default in every query ... which is a big problem for me because in most cases i need data to be sorted by id desc
And i dont think its just me ... you almost always want new rows to show in the top of the list in the view .
Whether its list of news or users or a blog posts .
Of curse i can use ->orderBy('id' , 'desc')
but if i have to write this for every single query i think i would need to see a shrink after each project !
So i'm looking for a clean way and without a need to add something to each model ... apparently there is Global Scopes
but i need to add id to each model which i'm ging to consider it as plan B .
So , im looking to change this globally for each and every query ... is there a way or should i go with plan B!?