$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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community