update: literacy user controller add order by for new user

This commit is contained in:
abiyasa05 2025-05-24 13:19:59 +07:00
parent b865f36c29
commit 99e7b7b5f3

View File

@ -20,7 +20,7 @@ public function __construct()
// 📋 1. Menampilkan daftar pengguna
public function users()
{
$users = User::all();
$users = User::orderBy('created_at', 'desc')->get();;
$materials = LiteracyMaterial::all();
$questions = LiteracyQuestion::all();
return view('literacy.teacher.users.index', [