feat: display tours dynamically on index page

This commit is contained in:
2026-08-16 16:58:45 +03:30
parent 374c96bb79
commit 95cc970b07
9 changed files with 114 additions and 233 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Http\Controllers;
use App\Models\Tour;
use Illuminate\Http\Request;
class TourController extends Controller
{
public function show(Tour $tour)
{
$tour->load([
'tour_details',
'originAirport',
'destinationAirport',
'file',
]);
return view('tours.show', compact('tour'));
}
}