Componentalization
This commit is contained in:
@@ -7,9 +7,13 @@ use Inertia\Inertia;
|
||||
|
||||
Route::get('/', function () {
|
||||
return Inertia::render('Home',[
|
||||
'featured_tours' => Tour::all()->random(3),
|
||||
'featured_tours' => Tour::featuredTours(),
|
||||
]);
|
||||
})->name('home');
|
||||
|
||||
Route::get('/about', function () {
|
||||
return Inertia::render('AboutUs');
|
||||
})->name('home');
|
||||
|
||||
require __DIR__.'/settings.php';
|
||||
require __DIR__.'/auth.php';
|
||||
|
||||
Reference in New Issue
Block a user