fix: dynamic tours details view and null-safe relations

This commit is contained in:
2026-08-18 14:55:47 +03:30
parent d427d8cf50
commit a2b9e3a051
6 changed files with 367 additions and 39 deletions
+5 -1
View File
@@ -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');
});
});