Featured tours working

This commit is contained in:
2025-09-15 13:40:20 +10:00
parent f0e7ce30fc
commit e965cc2780
24 changed files with 384 additions and 26 deletions

View File

@@ -1,14 +1,13 @@
<?php
use App\Models\Continent;
use App\Models\Tour;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
Route::get('/', function () {
$continent = Continent::first();
return Inertia::render('Home',[
'continent' => $continent,
'featured_tours' => Tour::all()->random(3),
]);
})->name('home');