webman迁移

This commit is contained in:
2026-03-18 11:22:12 +08:00
parent dab3b3148f
commit ea77c7b3a1
623 changed files with 38163 additions and 106 deletions

View File

@@ -3,6 +3,15 @@
* BuildAdmin Webman 公共函数
*/
// mb_split 兼容mbstring 扩展未启用时Illuminate 的 Str::studly 会报错,用 preg_split 兜底
if (!function_exists('mb_split')) {
function mb_split(string $pattern, string $string, int $limit = -1): array
{
$result = @preg_split('#' . $pattern . '#u', $string, $limit);
return $result !== false ? $result : [];
}
}
use support\Response;
if (!function_exists('env')) {