Support the ongoing development of Laravel.io →
Database Eloquent Blade
Last updated 1 year ago.
0
$teemad = DB::table('f_teemad')
				->leftJoin('f_postitused', 'f_postitused.teema_id', '=', 'f_teemad.id')
				->groupBy('f_teemad.id')
				->orderBy('f_postitused.id', 'DESC')
				->select('f_teemad.*')
				->where('f_teemad.foorum_id', '=', $foorum->id)
				->get();

I've tried that, still won't sort threads by thier last reply.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Typhome typhome Joined 24 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.