feat: add tour and flight detail logic to controllers
This commit is contained in:
@@ -25,9 +25,10 @@ class TourController extends Controller
|
||||
return view('tours.index', compact('title', 'tours', 'sort'));
|
||||
}
|
||||
|
||||
public function show(Tour $tour)
|
||||
public function show(Tour $id)
|
||||
{
|
||||
$title= 'جزئیات تور';
|
||||
return view('tours.show', compact('title'));
|
||||
$tour = Tour::findOrFail($id);
|
||||
return view('tours.show', compact('title' , 'tour'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user