phpvms/app/Http/Controllers/Api/PirepController.php

18 lines
353 B
PHP
Raw Normal View History

2017-08-15 12:36:49 +08:00
<?php
namespace App\Http\Controllers\Api;
use App\Models\Pirep;
use App\Models\Transformers\PirepTransformer;
use App\Http\Controllers\AppBaseController;
class PirepController extends AppBaseController
{
public function get($id)
{
$pirep = Pirep::find($id);
return fractal($pirep, new PirepTransformer())->respond();
}
}