20 lines
441 B
PHP
20 lines
441 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Flight;
|
|
use App\Models\Tour;
|
|
use App\Models\Province;
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$newestFlight = Flight::latest()->take(10)->get();
|
|
$flights=Flight::latest()->paginate(5);
|
|
$newestTour = Tour::latest()->take(10)->get();
|
|
|
|
return view('home.index', compact('newestFlight','flights', 'newestTour'));
|
|
}
|
|
}
|