Is there any way I could perfrom this DB query with Eloquent instead?
DB::table(DB::raw('(select * from threads order by id limit 20) th'))->orderBy('votes')->paginate(10)
Basically I want to order the threads by votes, but I don't want to request all the threads in the table for that, but only the 20 recent ones.
thank you!