readNotice($uid); return response()->json([ 'code' => 200, 'message' => 'OK' ]); } public function subscribe() { $uid = Auth::auth(); $ns = new NoticeService(); $ns->subscribe($uid); return array( 'code' => 200, 'message' => 'success' ); } }