23 lines
455 B
PHP
23 lines
455 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Flight;
|
|
use App\Models\Tour;
|
|
use Illuminate\Http\Request;
|
|
|
|
class IndexController extends Controller
|
|
{
|
|
//
|
|
public function index()
|
|
{
|
|
$tours = Tour::query()
|
|
->with(['file', 'tour_details','originAirport' , 'destinationAirport'])
|
|
->orderByDesc('created_at')
|
|
->limit(4)
|
|
->get();
|
|
|
|
return view('index' , compact('tours'));
|
|
}
|
|
}
|