Logo white

Alexey Boroda / akaunting

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • akaunting
  • app
  • Transformers
  • Setting
  • Setting.php
  • first commit
    b7c7a5f6
    Alexey Boroda authored
    2018-10-22 16:42:06 +0300  
    Browse Code ยป
Setting.php 472 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php

namespace App\Transformers\Setting;

use App\Models\Setting\Setting as Model;
use League\Fractal\TransformerAbstract;

class Setting extends TransformerAbstract
{
    /**
     * @param Model $model
     * @return array
     */
    public function transform(Model $model)
    {
        return [
            'id' => $model->id,
            'company_id' => $model->company_id,
            'key' => $model->key,
            'value' => $model->value,
        ];
    }
}