摘要:        
一,只包含中文: 'city' => 'required|regex:/^[\x{4e00}-\x{9fa5}]+$/u', 正则表达式 [\x{4e00}-\x{9fa5}] 匹配所有中文字符,其中 \x{4e00} 是中文字符的开始码,\x{9fa5} 是结束码。 u 修饰符用于正则表达式,以支    阅读全文
        
            posted @ 2024-08-07 19:32
刘宏缔的架构森林
阅读(328)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
一,代码: 1, 中间件 <?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; use App\ext    阅读全文
        
            posted @ 2024-08-07 17:26
刘宏缔的架构森林
阅读(58)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号