Cronix8 years agoLevel 67ReplyReport SpamWith normal mysql, you'd add a - sign before the column, like -images_id. Don't know if that will work with query builder/eloquent or not, but it if doesn't you can use orderByRaw() and manually enter your order portion of the query. Like Reply 3 likes
samalapsy OP 8 years agoLevel 2ReplyReport SpamThis is not still sorting the code.. orderByRaw('-images_id', 'DESC') Like Reply
Cronix8 years agoLevel 67ReplyReport SpamThen you'll have to do it manually with raw sql (not query builder or eloquent) like I said above using orderByRaw. See this post: https://stackoverflow.com/questions/2051602/mysql-orderby-a-number-nulls-last Like Reply
WouterClaes8 years agoLevel 1ReplyReport Spamthe syntax of the post from @samalapsy should be orderByRaw('-images_id DESC') without the parameters Like Reply 3 likes