route("id"); $token = $request->route("token"); $user = User::findOrFail($id); if($user->is_active) { return redirect()->route("auth.loginShow"); } if($user->verify_token != $token) { return redirect()->route("blog.index"); } return $next($request); } }