feat: make tours, flight sections dynamic on homepage
This commit is contained in:
@@ -16,8 +16,12 @@ class IndexController extends Controller
|
||||
->orderByDesc('created_at')
|
||||
->paginate(4);
|
||||
|
||||
$tours = Tour::with(['file' , 'originCity', 'city'])
|
||||
->orderByDesc('created_at')
|
||||
->paginate(4);
|
||||
|
||||
|
||||
return view('index' , compact('title' , 'flights'));
|
||||
|
||||
return view('index' , compact('title' , 'flights' , 'tours'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user