for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Laravel Platfourm package.
*
* (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\Platfourm\Repository\Presenter;
use Exception;
use Longman\Platfourm\Repository\Transformer\ModelTransformer;
/**
* Class ModelFractalPresenter.
class ModelFractalPresenter extends FractalPresenter
{
* Transformer.
* @throws Exception
* @return ModelTransformer
public function getTransformer()
if (!class_exists('League\Fractal\Manager')) {
throw new Exception("Package required. Please install: 'composer require league/fractal' (0.12.*)");
}
return new ModelTransformer();