uawdijnntqw1x1x1
IP : 13.59.1.58
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
jackpotjunglegam
/
public_html
/
80d3f
/
..
/
core
/
config
/
..
/
app
/
Http
/
Middleware
/
KycMiddleware.php
/
/
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class KycMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ public function handle(Request $request, Closure $next) { $user = auth()->user(); if ($request->is('api/*') && ($user->kv == 0 || $user->kv == 2)) { $notify[] = 'You are unable to withdraw due to KYC verification'; return response()->json([ 'remark'=>'kyc_verification', 'status'=>'error', 'message'=>['error'=>$notify], ]); } if ($user->kv == 0) { $notify[] = ['error','You are not KYC verified. For being KYC verified, please provide these information']; return to_route('user.kyc.form')->withNotify($notify); } if ($user->kv == 2) { $notify[] = ['warning','Your documents for KYC verification is under review. Please wait for admin approval']; return to_route('user.home')->withNotify($notify); } return $next($request); } }
/home/jackpotjunglegam/public_html/80d3f/../core/config/../app/Http/Middleware/KycMiddleware.php