芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pennysave/application/app/Http/Middleware/CheckStatus.php
user(); if ($user->status && $user->ev && $user->sv && $user->tv) { return $next($request); } else { if ($request->is('api/*')) { $notify[] = 'You need to verify your account first.'; return response()->json([ 'remark'=>'unverified', 'status'=>'error', 'message'=>['error'=>$notify], 'data'=>[ 'is_ban'=>$user->status, 'email_verified'=>$user->ev, 'mobile_verified'=>$user->sv, 'twofa_verified'=>$user->tv, ], ]); }else{ return to_route('user.authorization'); } } } abort(403); } }