fix: update homepage
This commit is contained in:
@@ -11,14 +11,17 @@ class IndexController extends Controller
|
||||
{
|
||||
$tours = Tour::query()
|
||||
->where('status', 1)
|
||||
->latest()
|
||||
->orderByDesc('created_at')
|
||||
->paginate(6, ['*'], 'tours_page');
|
||||
|
||||
$flights = Flight::query()
|
||||
->where('status', 1)
|
||||
->latest()
|
||||
->orderByDesc('created_at')
|
||||
->paginate(6, ['*'], 'flights_page');
|
||||
|
||||
return view('index', compact('tours', 'flights'));
|
||||
return view('index', [
|
||||
'tours' => $tours,
|
||||
'flights' => $flights,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
+207
-1757
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user