fix: dynamic tours details view and null-safe relations
This commit is contained in:
+5
-1
@@ -23,7 +23,11 @@ Route::prefix('flights')->controller(FlightController::class)->name('flights.')-
|
||||
|
||||
Route::prefix('tours')->controller(TourController::class)->name('tours.')->group(function () {
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::get('{tour}', 'show')->name('show');
|
||||
Route::prefix('{tour}')->group(function () {
|
||||
Route::get('/', 'show')->name('show');
|
||||
Route::post('/comment', 'commentStore')->name('comments.store');
|
||||
Route::post('/booking', [BookingController::class, 'store'])->name('booking.store');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user