feat: add tour and flight detail logic to controllers

This commit is contained in:
2026-08-17 19:05:49 +03:30
parent 8fcc18fde9
commit c30b9f4550
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -29,6 +29,8 @@ class FlightController extends Controller
public function show(Flight $flight)
{
$title = 'جزئیات پرواز';
return view('flights.show' , compact('title'));
$flight = Flight::findOrFail($flight);
return view('flights.show' , compact('title' , 'flight'));
}
}