This commit is contained in:
ct
2025-07-16 22:10:59 +08:00
parent fe32ffda42
commit a1f17325f1
2 changed files with 42 additions and 38 deletions

View File

@@ -25,7 +25,7 @@ private function getMemes(?string $search = null): Response
{
$query = MemeMedia::query()
->where('is_enabled', true)
->orderBy('created_at', 'desc');
->orderBy('id', 'desc');
// Search functionality
if ($search) {
@@ -39,7 +39,7 @@ private function getMemes(?string $search = null): Response
});
}
$memes = $query->paginate(12);
$memes = $query->cursorPaginate(24);
// Get available types for filter
$types = MemeMedia::where('is_enabled', true)