<?php

namespace App\Http\Controllers\Manage\Help\Transformers;
/**
 * Created by PhpStorm.
 * User: zhaoy
 * Date: 20181/07/02
 * Time: 下午2:17
 */

class HelpTransformer
{
    public function transform($item)
    {
        return [
            'id' => $item->id,
            'title' => $item->title,
            'content' => $item->content,
            'created_at' =>$item->created_at,
            'updated_at' => $item->updated_at,
            'is_enabled' => $item->is_enabled
        ];
    }
}