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 Litepie\User\Repositories\Presenter;
use League\Fractal\TransformerAbstract;
class RoleListTransformer extends TransformerAbstract
{
public function transform(\Litepie\User\Models\Role $name)
return [
'id' => $name->getRouteKey(),
'name' => $name->name,
];
}