/** * Transform the \Notification entity. * * @param Notification $model * * @return array */ public function transformData($model) { $data = $model->toArray(); $data['type_msg'] = $model->typeMessage(); $data['message'] = $model->message(); return $data; }
/** * Transform the \Notification entity. * * @param Notification $model * * @return array */ public function transformData($model) { return $model->toArray(); }