reverse order in search
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user