%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/app/Transformers/
Upload File :
Create Path :
Current File : /var/www/html/news/app/Transformers/RoleTransformer.php

<?php

namespace App\Transformers;

use HttpOz\Roles\Models\Role;

class RoleTransformer extends BaseTransformer
{
    protected $availableIncludes = [

    ];

    public function transform(Role $role)
    {
        $data = $this->transformColumns($role);

        return $data;
    }


    protected function getTransformableColumns()
    {
        return [
            'id'          => 'id',
            'slug'        => 'slug',
            'description' => 'description',
            'created_at'  => 'created_at',
            'updated_at'  => 'updated_at'
        ];
    }
}

Zerion Mini Shell 1.0