fixed #83
This commit is contained in:
23
app/Transformers/Setting/Setting.php
Normal file
23
app/Transformers/Setting/Setting.php
Normal file
@ -0,0 +1,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,
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user