git add .
git commit "Complete project development and finalize features"
This commit is contained in:
@@ -15,26 +15,19 @@ class FlightController extends Controller
|
||||
->applySearch($request->all())
|
||||
->paginate(10);
|
||||
|
||||
|
||||
$newestFlight = Flight::latest()
|
||||
->take(3)
|
||||
->get();
|
||||
|
||||
|
||||
$newestTour = Tour::latest()
|
||||
->take(3)
|
||||
->get();
|
||||
|
||||
|
||||
$tours = Tour::latest()
|
||||
->paginate(10);
|
||||
|
||||
|
||||
return view('flights.index', compact(
|
||||
'flights',
|
||||
'newestFlight',
|
||||
'newestTour',
|
||||
'tours'
|
||||
return view('flights.index', compact('flights', 'newestFlight',
|
||||
'newestTour', 'tours'
|
||||
));
|
||||
}
|
||||
public function show(Flight $flight)
|
||||
@@ -48,7 +41,6 @@ class FlightController extends Controller
|
||||
->latest()
|
||||
->get();
|
||||
|
||||
|
||||
return view('flights.show', compact('flight', 'comments'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user