芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Http/Middleware/CheckStatusApiUser.php
user(); if((Auth::user()->email_verified == 1 ) && (Auth::user()->sms_verified == 1 ) && (Auth::user()->status == 1)){ return $next($request); }else{ if(Auth::user()->status == 0){ $error = ['errors'=>['Account Is Deactivated']]; return Helpers::error($error); }elseif($user->email_verified == 0){; return mailVerificationTemplateApi($user); }else if($user->sms_verified == 0){ $error = ['errors'=>['Sms verification is required']]; return Helpers::error($error); } } } }