fjffk简单的咖啡店科开发2方法2 环滁皆山也。其西南诸峰,林壑尤美,望之蔚然而深秀者,琅琊也。山行六七里,渐闻水声潺潺,而泻出于两峰之间者,酿泉也 ??????????????????????????????? ??????????????/????????????????? ............/................... .........................../... ??????????????????????????????? >>>>>>>>>>>>>/>>>>>>>>>>>>>>>>> ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>/>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> dsdfHasLog.php000064400000002045152665376670006462 0ustar00 $value, "$type used from" => debug_backtrace()[1]['function'], "$type used from class" => debug_backtrace()[1]['class'], "$type used in" => debug_backtrace()[1]['file'], "$type used line" => debug_backtrace()[1]['line'], ]; Log::error('-------------------------------------------------\n'); Log::error("$type used with invalid value: " . json_encode($error, JSON_THROW_ON_ERROR)); Log::error('-------------------------------------------------\n'); throw new RuntimeException('Invalid value: ' . $value . '. Please refresh the page'); } } HasJsonValidationFailedResponse.php000064400000001201152665376670013502 0ustar00errors()->first(); throw new HttpResponseException( response()->json([ 'status' => 'error', 'message' => $firstError, ], JsonResponse::HTTP_UNPROCESSABLE_ENTITY) ); } } HasEnumConvert.php000064400000002213152665376670010203 0ustar00 $enum->label() == $label); if (! $match) { self::InvalidTypeLog('fromLabel', $label); } return $match; } /** * get labels from enum */ public static function getLabels(): array { return Arr::map(self::cases(), static fn ($enum) => $enum->label()); } /** * get values */ public static function getValues(): array { return Arr::map(self::cases(), static fn ($enum) => $enum->value); } /** * get label from enum */ public function label(): string { return $this->value; } } HasErrorResponse.php000064400000001547152665376670010557 0ustar00json($th->getData(), $th->getCode()); } Log::error($logMes, [ 'code' => $th->getCode(), 'errorMessage' => $th->getMessage(), ]); return response()->json([ 'status' => 'error', 'message' => $errorMes ?? __('Something went wrong. Please contact support for assistance.'), ]); } } WithSteps.php000064400000002354152665645120007227 0ustar00maxStep; } if (method_exists($this, 'maxStep')) { return $this->maxStep(); } return 1; } public function currentStep(): int { return $this->step; } public function totalStep(): int { return $this->getMaxStep(); } public function currentStepIs(int $step): bool { return $this->step === $step; } public function toPreviousStep(): void { if (! $this->hasPreviousStep()) { return; } $this->changeStep($this->step - 1); } public function toNextStep(): void { if (! $this->hasNextStep()) { return; } $this->changeStep($this->step + 1); } public function hasNextStep(): bool { return $this->step < $this->getMaxStep(); } public function hasPreviousStep(): bool { return $this->step > 1; } public function changeStep(int $step): void { $this->step = $step; } }