phpvms/app/Http/Controllers/Frontend/FlightController.php

38 lines
662 B
PHP
Raw Normal View History

2017-08-03 04:12:26 +08:00
<?php
namespace App\Http\Controllers\Frontend;
use Illuminate\Http\Request;
use App\Repositories\FlightRepository;
use App\Http\Controllers\AppBaseController;
class FlightController extends AppBaseController
{
private $flightRepo;
public function __construct(FlightRepository $flightRepo)
{
$this->flightRepo = $flightRepo;
}
public function index(Request $request)
{
$flights = $this->flightRepo->findByField('active', true);
return $this->view('flights.index', [
'flights' => $flights,
]);
}
public function show($id)
{
}
public function update()
{
}
}