FatalThrowableError {#560
  #message: "Call to undefined function App\Http\Controllers\giveHost()"
  #code: 0
  #file: "/home/hrmagic/public_html/subdomains/hrmagic/app/Http/Controllers/IndexController.php"
  #line: 43
  #severity: E_ERROR
  trace: {
    /home/hrmagic/public_html/subdomains/hrmagic/app/Http/Controllers/IndexController.php:43 {
      › 
      › $host = giveHost($_SERVER['HTTP_HOST']); //dump($host);$subdomain = getSubdomain($_SERVER['HTTP_HOST']);  // dump($subdomain); 
    }
    App\Http\Controllers\IndexController->__construct() {}
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Container/Container.php:785 {
      › 
      ›     return $reflector->newInstanceArgs($instances);}
      arguments: {
        $args: []
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Container/Container.php:631 {if ($this->isBuildable($concrete, $abstract)) {    $object = $this->build($concrete);} else {
      arguments: {
        $concrete: "App\Http\Controllers\UserController"
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Container/Container.php:586 {{    return $this->resolve($abstract, $parameters);}
      arguments: {
        $abstract: "App\Http\Controllers\UserController"
        $parameters: []
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:732 {
      › 
      ›     return parent::make($abstract, $parameters);}
      arguments: {
        $abstract: "App\Http\Controllers\UserController"
        $parameters: []
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Route.php:226 {
      › 
      ›     $this->controller = $this->container->make(ltrim($class, '\\'));}
      arguments: {
        $abstract: "App\Http\Controllers\UserController"
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Route.php:796 {return $this->controllerDispatcher()->getMiddleware(    $this->getController(), $this->getControllerMethod());
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Route.php:757 {return $this->computedMiddleware = array_unique(array_merge(    $this->middleware(), $this->controllerMiddleware()), SORT_REGULAR);
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Router.php:671 {{    $middleware = collect($route->gatherMiddleware())->map(function ($name) {        return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Router.php:651 {
      › 
      › $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);arguments: {
        $route: Route {#533 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Router.php:635 {return $this->prepareResponse($request,    $this->runRouteWithinStack($route, $request));
      arguments: {
        $route: Route {#533 …}
        $request: Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Router.php:601 {{    return $this->runRoute($request, $this->findRoute($request));}
      arguments: {
        $request: Request {#42 …}
        $route: Route {#533 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Router.php:590 {
      › 
      ›     return $this->dispatchToRoute($request);}
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
      › 
      ›     return $this->router->dispatch($request);};
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/fideloper/proxy/src/TrustProxies.php:56 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149 {return method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#544 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149 {return method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#544 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149 {return method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#544 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149 {return method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#544 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149 {return method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Request {#42 …}
        $next: Closure {#544 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {                ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
      arguments: {
        $destination: Closure {#23 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      arguments: {
        $request: Request {#42 …}
      }
    }
    /home/hrmagic/public_html/subdomains/hrmagic/public/index.php:57 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Request {#42 …}
      }
    }
  }
}