123456789101112131415161718192021222324252627 |
- <?php
- /*
- * This file is part of the Jiannei/lumen-api-starter.
- *
- * (c) Jiannei <longjian.huang@foxmail.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- namespace App\Repositories\Presenters;
- use App\Repositories\Transformers\PostTransformer;
- class PostPresenter extends Presenter
- {
- /**
- * Prepare data to present.
- *
- * @return \League\Fractal\TransformerAbstract
- */
- public function getTransformer()
- {
- return new PostTransformer();
- }
- }
|