toDateTimeString()){ $noticeStatus = 1; } return [ 'id' => $noticeRule['id'], 'title' => $noticeRule['title'], 'cover' => $noticeRule['cover'], 'updated_at' => Carbon::parse($noticeRule['updated_at'])->toDateTimeString(), 'send_count' => $noticeRule['send_count'], 'notice_user_type' => $noticeRule['notice_user_type'], 'notice_status' => $noticeStatus, ]; } }