['<=', $time], 'end_time' => ['>=', $time], ]))->orderByDesc('id')->get()->toArray(); } catch (ValidationException $e) { return $this->error($e->validator->errors()->first()); } catch (Exception $e) { return $this->error($e->getMessage()); } return $this->success($list); } }