use Illuminate\Support\Facades\Http;
use App\Models\Server;
class HomeController extends Controller
{
public function index()
{
// Actualizarea serverelor direct din GameQuery
$servers = Server::all();
foreach ($servers as $server) {
$response = Http::withHeaders([
'Authorization' => env('GAMEQUERY_API_KEY'),
])->get("https://gamequery.dev/api/query", [
'ip' => $server->ip,
'port' => $server->port,
]);
if ($response->successful()) {
$data = $response->json();
$server->update([
'is_online' => $data['online'],
'players_online' => $data['players'],
'max_players' => $data['max_players'],
'map' => $data['map'],
'game' => $data['game'],
'status' => $data['online'] ? 'online' : 'offline',
'country' => $data['country'] ?? null,
]);
}
}
return view('home', [
'serversTotal' => Server::count(),
'serversOnline' => Server::where('is_online', 1)->count(),
'playersOnline' => Server::sum('players_online'),
'gamesTotal' => Server::select('game')->distinct()->count(),
'mapsTotal' => Server::select('map')->distinct()->count(),
'games' => Server::select('game')->distinct()->get(),
'topServers' => Server::orderBy('players_online','desc')->limit(10)->get(),
'latestServers' => Server::orderBy('created_at','desc')->limit(10)->get(),
]);
}
}
use Illuminate\Support\Facades\Http;
use App\Models\Server;
class HomeController extends Controller
{
public function index()
{
// Actualizarea serverelor direct din GameQuery
$servers = Server::all();
foreach ($servers as $server) {
$response = Http::withHeaders([
'Authorization' => env('GAMEQUERY_API_KEY'),
])->get("https://gamequery.dev/api/query", [
'ip' => $server->ip,
'port' => $server->port,
]);
if ($response->successful()) {
$data = $response->json();
$server->update([
'is_online' => $data['online'],
'players_online' => $data['players'],
'max_players' => $data['max_players'],
'map' => $data['map'],
'game' => $data['game'],
'status' => $data['online'] ? 'online' : 'offline',
'country' => $data['country'] ?? null,
]);
}
}
return view('home', [
'serversTotal' => Server::count(),
'serversOnline' => Server::where('is_online', 1)->count(),
'playersOnline' => Server::sum('players_online'),
'gamesTotal' => Server::select('game')->distinct()->count(),
'mapsTotal' => Server::select('map')->distinct()->count(),
'games' => Server::select('game')->distinct()->get(),
'topServers' => Server::orderBy('players_online','desc')->limit(10)->get(),
'latestServers' => Server::orderBy('created_at','desc')->limit(10)->get(),
]);
}
}
use Illuminate\Support\Facades\Http;
use App\Models\Server;
class HomeController extends Controller
{
public function index()
{
// Actualizarea serverelor direct din GameQuery
$servers = Server::all();
foreach ($servers as $server) {
$response = Http::withHeaders([
'Authorization' => env('GAMEQUERY_API_KEY'),
])->get("https://gamequery.dev/api/query", [
'ip' => $server->ip,
'port' => $server->port,
]);
if ($response->successful()) {
$data = $response->json();
$server->update([
'is_online' => $data['online'],
'players_online' => $data['players'],
'max_players' => $data['max_players'],
'map' => $data['map'],
'game' => $data['game'],
'status' => $data['online'] ? 'online' : 'offline',
'country' => $data['country'] ?? null,
]);
}
}
return view('home', [
'serversTotal' => Server::count(),
'serversOnline' => Server::where('is_online', 1)->count(),
'playersOnline' => Server::sum('players_online'),
'gamesTotal' => Server::select('game')->distinct()->count(),
'mapsTotal' => Server::select('map')->distinct()->count(),
'games' => Server::select('game')->distinct()->get(),
'topServers' => Server::orderBy('players_online','desc')->limit(10)->get(),
'latestServers' => Server::orderBy('created_at','desc')->limit(10)->get(),
]);
}
}
use Illuminate\Support\Facades\Http;
use App\Models\Server;
class HomeController extends Controller
{
public function index()
{
// Actualizarea serverelor direct din GameQuery
$servers = Server::all();
foreach ($servers as $server) {
$response = Http::withHeaders([
'Authorization' => env('GAMEQUERY_API_KEY'),
])->get("https://gamequery.dev/api/query", [
'ip' => $server->ip,
'port' => $server->port,
]);
if ($response->successful()) {
$data = $response->json();
$server->update([
'is_online' => $data['online'],
'players_online' => $data['players'],
'max_players' => $data['max_players'],
'map' => $data['map'],
'game' => $data['game'],
'status' => $data['online'] ? 'online' : 'offline',
'country' => $data['country'] ?? null,
]);
}
}
return view('home', [
'serversTotal' => Server::count(),
'serversOnline' => Server::where('is_online', 1)->count(),
'playersOnline' => Server::sum('players_online'),
'gamesTotal' => Server::select('game')->distinct()->count(),
'mapsTotal' => Server::select('map')->distinct()->count(),
'games' => Server::select('game')->distinct()->get(),
'topServers' => Server::orderBy('players_online','desc')->limit(10)->get(),
'latestServers' => Server::orderBy('created_at','desc')->limit(10)->get(),
]);
}
}
use Illuminate\Support\Facades\Http;
use App\Models\Server;
class HomeController extends Controller
{
public function index()
{
// Actualizarea serverelor direct din GameQuery
$servers = Server::all();
foreach ($servers as $server) {
$response = Http::withHeaders([
'Authorization' => env('GAMEQUERY_API_KEY'),
])->get("https://gamequery.dev/api/query", [
'ip' => $server->ip,
'port' => $server->port,
]);
if ($response->successful()) {
$data = $response->json();
$server->update([
'is_online' => $data['online'],
'players_online' => $data['players'],
'max_players' => $data['max_players'],
'map' => $data['map'],
'game' => $data['game'],
'status' => $data['online'] ? 'online' : 'offline',
'country' => $data['country'] ?? null,
]);
}
}
return view('home', [
'serversTotal' => Server::count(),
'serversOnline' => Server::where('is_online', 1)->count(),
'playersOnline' => Server::sum('players_online'),
'gamesTotal' => Server::select('game')->distinct()->count(),
'mapsTotal' => Server::select('map')->distinct()->count(),
'games' => Server::select('game')->distinct()->get(),
'topServers' => Server::orderBy('players_online','desc')->limit(10)->get(),
'latestServers' => Server::orderBy('created_at','desc')->limit(10)->get(),
]);
}
}
Laravel
Illuminate\Contracts\Container\BindingResolutionException
BindingResolutionException
Target class [App\Http\Controllers\HomeController] does not exist.
GET www.gtrstats.com
PHP 8.3.28 — Laravel 11.46.2
Collapse
Expand
vendor frames
vendor/laravel/framework/src/Illuminate/Container/Container.php
:961
}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
}
// If the type is not instantiable, the developer is attempting to resolve
// an abstract type such as an Interface or Abstract Class and there is
// no binding registered for the abstractions so we need to bail out.
if (! $reflector->isInstantiable()) {
return $this->notInstantiable($concrete);
}
$this->buildStack[] = $concrete;
vendor/laravel/framework/src/Illuminate/Container/Container.php
:832
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
$object = $this->isBuildable($concrete, $abstract)
? $this->build($concrete)
: $this->make($concrete);
// If we defined any extenders for this type, we'll need to spin through them
// and apply them to the object being built. This allows for the extension
// of services, such as changing configuration or decorating the object.
foreach ($this->getExtenders($abstract) as $extender) {
$object = $extender($object, $this);
}
// If the requested type is registered as a singleton we'll want to cache off
// the instances in "memory" so we can return it later without creating an
vendor/laravel/framework/src/Illuminate/Foundation/Application.php
:1078
*/
protected function resolve($abstract, $parameters = [], $raiseEvents = true)
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::resolve($abstract, $parameters, $raiseEvents);
}
/**
* Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
*
* @param string $abstract
* @return void
*/
protected function loadDeferredProviderIfNeeded($abstract)
{
if ($this->isDeferredService($abstract) && ! isset($this->instances[$abstract])) {
vendor/laravel/framework/src/Illuminate/Container/Container.php
:763
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*
* @template TClass of object
*
* @param string|class-string<TClass> $id
* @return ($id is class-string<TClass> ? TClass : mixed)
*/
public function get(string $id)
vendor/laravel/framework/src/Illuminate/Foundation/Application.php
:1058
*/
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
* @template TClass of object
*
* @param string|class-string<TClass>|callable $abstract
* @param array $parameters
* @param bool $raiseEvents
* @return ($abstract is class-string<TClass> ? TClass : mixed)
vendor/laravel/framework/src/Illuminate/Routing/Route.php
:285
}
if (! $this->controller) {
$class = $this->getControllerClass();
$this->controller = $this->container->make(ltrim($class, '\\'));
}
return $this->controller;
}
/**
* Get the controller class used for the route.
*
* @return string|null
*/
public function getControllerClass()
vendor/laravel/framework/src/Illuminate/Routing/Route.php
:267
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function runController()
{
return $this->controllerDispatcher()->dispatch(
$this, $this->getController(), $this->getControllerMethod()
);
}
/**
* Get the controller instance for the route.
*
* @return mixed
*/
public function getController()
{
if (! $this->isControllerAction()) {
vendor/laravel/framework/src/Illuminate/Routing/Route.php
:212
{
$this->container = $this->container ?: new Container;
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
/**
* Checks whether the route's action is a controller.
*
vendor/laravel/framework/src/Illuminate/Routing/Router.php
:808
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $this->prepareResponse(
$request, $route->run()
));
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:170
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
:51
}
throw $exception;
}
return $next($request);
}
}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
:88
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
throw new TokenMismatchException('CSRF token mismatch.');
}
/**
* Determine if the HTTP request uses a ‘read’ verb.
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php
:49
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
:121
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
// Again, if the session has been configured we will need to close out the session
// so that the attributes may be persisted to some storage medium. We will also
// add the session identifier cookie to the application response headers now.
$this->saveSession($request);
return $response;
vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
:64
if ($this->manager->shouldBlock() ||
($request->route() instanceof Route && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
}
return $this->handleStatefulRequest($request, $session, $next);
}
/**
* Handle the given request within session state.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Contracts\Session\Session $session
* @param \Closure $next
* @return mixed
*/
protected function handleRequestWhileBlocking(Request $request, $session, Closure $next)
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php
:37
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
:75
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return \Symfony\Component\HttpFoundation\Request
*/
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $cookie) {
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:127
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
try {
return $pipeline($this->passable);
} finally {
if ($this->finally) {
($this->finally)($this->passable);
}
}
}
/**
* Run the pipeline and return the result.
*
* @return mixed
vendor/laravel/framework/src/Illuminate/Routing/Router.php
:807
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $this->prepareResponse(
$request, $route->run()
));
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
vendor/laravel/framework/src/Illuminate/Routing/Router.php
:786
$request->setRouteResolver(fn () => $route);
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
vendor/laravel/framework/src/Illuminate/Routing/Router.php
:750
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
{
$this->events->dispatch(new Routing($request));
vendor/laravel/framework/src/Illuminate/Routing/Router.php
:739
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
:201
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:170
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
:21
*/
public function handle($request, Closure $next)
{
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php
:31
if ($callback($request)) {
return $next($request);
}
}
return parent::handle($request, $next);
}
/**
* Transform the given value.
*
* @param string $key
* @param mixed $value
* @return mixed
*/
protected function transform($key, $value)
{
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
:21
*/
public function handle($request, Closure $next)
{
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php
:51
if ($callback($request)) {
return $next($request);
}
}
return parent::handle($request, $next);
}
/**
* Transform the given value.
*
* @param string $key
* @param mixed $value
* @return mixed
*/
protected function transform($key, $value)
{
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php
:27
if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException('The POST data is too large.');
}
return $next($request);
}
/**
* Determine the server 'post_max_size' as bytes.
*
* @return int
*/
protected function getPostMaxSize()
{
if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
return (int) $postMaxSize;
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php
:110
null,
$this->getHeaders($data)
);
}
return $next($request);
}
/**
* Determine if the incoming request has a maintenance mode bypass cookie.
*
* @param \Illuminate\Http\Request $request
* @param array $data
* @return bool
*/
protected function hasValidBypassCookie($request, array $data)
{
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php
:49
* @return \Illuminate\Http\Response
*/
public function handle($request, Closure $next)
{
if (! $this->hasMatchingPath($request)) {
return $next($request);
}
$this->cors->setOptions($this->container['config']->get('cors', []));
if ($this->cors->isPreflightRequest($request)) {
$response = $this->cors->handlePreflightRequest($request);
$this->cors->varyHeader($response, 'Access-Control-Request-Method');
return $response;
}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php
:58
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames());
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function setTrustedProxyIpAddresses(Request $request)
{
$trustedIps = $this->proxies() ?: config('trustedproxy.proxies');
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php
:22
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle(Request $request, Closure $next)
{
return $next($request);
}
/**
* Invoke the deferred callbacks.
*
* @param \Illuminate\Http\Request $request
* @param \Symfony\Component\HttpFoundation\Response $response
* @return void
*/
public function terminate(Request $request, Response $response)
{
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:209
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
:127
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
try {
return $pipeline($this->passable);
} finally {
if ($this->finally) {
($this->finally)($this->passable);
}
}
}
/**
* Run the pipeline and return the result.
*
* @return mixed
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
:176
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
:145
$this->requestStartedAt = Carbon::now();
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new RequestHandled($request, $response)
);
return $response;
/home/gtrstats/public_html/index.php
:20
$app = require_once LARAVEL_PATH . '/bootstrap/app.php';
// Run the application
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Request
GET
/
Headers
accept-encoding
gzip, br, zstd, deflate
user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Body
Application
Routing
controller
App\Http\Controllers\HomeController@index
Database Queries
mysql
(4.95 ms)
select * from `sessions` where `id` = 'KL8jAyMy914srnaBefwU3CpjM8KIgOhRgXaDl9GK' limit 1