phpvms/app/Http/Controllers/Api/PirepController.php
2017-08-14 23:36:49 -05:00

18 lines
353 B
PHP

<?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();
}
}