has('id')) { return [ 'id' => $notice->id, 'name' => $notice->name, 'description' => $notice->description, 'body' => $notice->body, 'release_time' => $notice->release_time, 'sort' => $notice->sort, 'status' => $notice->status, 'created_at' => $notice->created_at ? $notice->created_at->format('Y-m-d H:i:s') : null, ]; } return [ 'id' => $notice->id, 'name' => $notice->name, 'description' => $notice->description, 'release_time' => $notice->release_time, 'sort' => $notice->sort, 'status' => $notice->status, 'admin' => $notice->admin, 'created_at' => $notice->created_at ? $notice->created_at->format('Y-m-d H:i:s') : null, ]; } }