uawdijnntqw1x1x1
IP : 3.133.126.241
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
/
8b76a
/
..
/
3d016
/
..
/
core
/
app
/
Http
/
Middleware
/
RegistrationStep.php
/
/
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class RegistrationStep { /** * 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 (!$user->profile_complete) { if ($request->is('api/*')) { $notify[] = 'Please complete your profile to go next'; return response()->json([ 'remark' => 'profile_incomplete', 'status' => 'error', 'message' => ['error' => $notify], ]); } else { return to_route('user.data'); } } return $next($request); } }
/home/jackpotjunglegam/public_html/8b76a/../3d016/../core/app/Http/Middleware/RegistrationStep.php