芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Http/Middleware/CheckSmsStatus.php
guard('web')->check()) { $user = auth()->user(); if ($user->status == true && $user->sms_verified == true) { return $next($request); } else { return redirect()->route('user.authorize.sms'); } }elseif(auth()->guard('merchant')->check()){ $user = auth()->user(); if ($user->status == true && $user->sms_verified == true) { return $next($request); } else { return redirect()->route('merchant.authorize.sms'); } }elseif(auth()->guard('agent')->check()){ $user = auth()->user(); if ($user->status == true && $user->sms_verified == true) { return $next($request); } else { return redirect()->route('agent.authorize.sms'); } } abort(403); } }