123456789101112131415161718192021222324 |
- <?php
- namespace App\Presenters;
- use App\Transformers\RoleTransformer;
- use Prettus\Repository\Presenter\FractalPresenter;
- /**
- * Class RolePresenter.
- *
- * @package namespace App\Presenters;
- */
- class RolePresenter extends FractalPresenter
- {
- /**
- * Transformer
- *
- * @return \League\Fractal\TransformerAbstract
- */
- public function getTransformer()
- {
- return new RoleTransformer();
- }
- }
|