reverse order in search

This commit is contained in:
2024-04-30 21:44:42 +10:00
parent 48131d3064
commit b7ee043bf3

View File

@@ -80,7 +80,7 @@ class WorkshopController extends Controller
$query = $query->where('starts_at', '>=', Carbon::now()->subDays(8)) $query = $query->where('starts_at', '>=', Carbon::now()->subDays(8))
->orderBy('starts_at', 'asc'); ->orderBy('starts_at', 'asc');
} else { } else {
$query = $query->orderBy('starts_at', 'desc'); $query = $query->orderBy('starts_at', 'asc');
} }
$workshops = $query->paginate(12); $workshops = $query->paginate(12);