| 12345678910111213141516171819202122232425 | <?phpnamespace App\Http\Controllers\Channel\OfficialAccount\Transformers;class SmartPushMsgTransformer{    public function transform($smartPushsMsg){        return [            'id'       =>   isset($smartPushsMsg->id)?$smartPushsMsg->id:'',            'distribution_channel_id'       =>   isset($smartPushsMsg->distribution_channel_id)?$smartPushsMsg->distribution_channel_id:'',            'name'       =>   isset($smartPushsMsg->name)?$smartPushsMsg->name:'',            'category_type'       =>   isset($smartPushsMsg->category_type)?$smartPushsMsg->category_type:'',            'content'       =>   isset($smartPushsMsg->content)?$smartPushsMsg->content:'',            'description'       =>   isset($smartPushsMsg->description)?$smartPushsMsg->description:'',            'book_name'       =>   isset($smartPushsMsg->book_name)?$smartPushsMsg->book_name:'',            'chapter_name'       =>   isset($smartPushsMsg->chapter_name)?$smartPushsMsg->chapter_name:'',            'sex'       =>   isset($smartPushsMsg->sex)?$smartPushsMsg->sex:'',            'appid'       =>  isset($smartPushsMsg->appid)?$smartPushsMsg->appid:'',            'status'       =>   isset($smartPushsMsg->status)?$smartPushsMsg->status:'',            'user_num'       =>  isset($smartPushsMsg->user_num)?$smartPushsMsg->user_num:'',            'created_at'       =>  isset($smartPushsMsg->created_at)?$smartPushsMsg->created_at:'',            'updated_at'       =>  isset($smartPushsMsg->updated_at)?$smartPushsMsg->updated_at:'',        ];    }}
 |