'[0-9]+'] * * Route parameter constraints, this attribute is used to specify regex constraints for route parameters, * for example: ['id' => '[0-9]+'] * * @var array */ public array $where = []; /** * 成功响应 * @param $msg array|string * @return JsonResponse */ protected static function success(array|string $msg = ''): JsonResponse { if (is_array($msg)) { $data = $msg; $msg = ''; } else { $data = []; } return response()->json([ 'success' => true, 'data' => $data, 'showType' => ShopTypeEnum::SUCCESS_MESSAGE->value, 'msg' => $msg, ]); } }