scheme:$parameters->path]"; } if (filter_var($parameters->host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) { return "$message [$parameters->scheme://[$parameters->host]:$parameters->port]"; } return "$message [$parameters->scheme://$parameters->host:$parameters->port]"; } /** * Helper method to handle connection errors. * * @param string $message Error message. * @param int […]" /> scheme:$parameters->path]"; } if (filter_var($parameters->host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) { return "$message [$parameters->scheme://[$parameters->host]:$parameters->port]"; } return "$message [$parameters->scheme://$parameters->host:$parameters->port]"; } /** * Helper method to handle connection errors. * * @param string $message Error message. * @param int […]"> - Write Best Story
Connect with us

Entertainment News

Published

on

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

AbstractConnection.php

            return "$message [$parameters->scheme:$parameters->path]";
        }
 
        if (filter_var($parameters->host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
            return "$message [$parameters->scheme://[$parameters->host]:$parameters->port]";
        }
 
        return "$message [$parameters->scheme://$parameters->host:$parameters->port]";
    }
 
    /**
     * Helper method to handle connection errors.
     *
     * @param string $message Error message.
     * @param int    $code    Error code.
     */
    protected function onConnectionError($message, $code = null)
    {
        CommunicationException::handle(
            new ConnectionException($this, static::createExceptionMessage($message), $code)
        );
    }
 
    /**
     * Helper method to handle protocol errors.
     *
     * @param string $message Error message.
     */
    protected function onProtocolError($message)
    {
        CommunicationException::handle(
            new ProtocolException($this, static::createExceptionMessage($message))
        );
    }
 
    /**
     * {@inheritdoc}
     */
    public function getResource()
    {

Arguments

  1. "Connection timed out [tcp://172.31.31.29:6379]"
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

StreamConnection.php

            default:
                throw new InvalidArgumentException("Invalid scheme: '{$this->parameters->scheme}'.");
        }
    }
 
    /**
     * Creates a connected stream socket resource.
     *
     * @param ParametersInterface $parameters Connection parameters.
     * @param string              $address    Address for stream_socket_client().
     * @param int                 $flags      Flags for stream_socket_client().
     *
     * @return resource
     */
    protected function createStreamSocket(ParametersInterface $parameters, $address, $flags)
    {
        $timeout = (isset($parameters->timeout) ? (float) $parameters->timeout : 5.0);
 
        if (!$resource = @stream_socket_client($address, $errno, $errstr, $timeout, $flags)) {
            $this->onConnectionError(trim($errstr), $errno);
        }
 
        if (isset($parameters->read_write_timeout)) {
            $rwtimeout = (float) $parameters->read_write_timeout;
            $rwtimeout = $rwtimeout > 0 ? $rwtimeout : -1;
            $timeoutSeconds = floor($rwtimeout);
            $timeoutUSeconds = ($rwtimeout - $timeoutSeconds) * 1000000;
            stream_set_timeout($resource, $timeoutSeconds, $timeoutUSeconds);
        }
 
        if (isset($parameters->tcp_nodelay) && function_exists('socket_import_stream')) {
            $socket = socket_import_stream($resource);
            socket_set_option($socket, SOL_TCP, TCP_NODELAY, (int) $parameters->tcp_nodelay);
        }
 
        return $resource;
    }
 
    /**
     * Initializes a TCP stream resource.

Arguments

  1. "Connection timed out"
    
  2. 110
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

StreamConnection.php

            $address = "tcp://[$parameters->host]:$parameters->port";
        }
 
        $flags = STREAM_CLIENT_CONNECT;
 
        if (isset($parameters->async_connect) && $parameters->async_connect) {
            $flags |= STREAM_CLIENT_ASYNC_CONNECT;
        }
 
        if (isset($parameters->persistent)) {
            if (false !== $persistent = filter_var($parameters->persistent, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE)) {
                $flags |= STREAM_CLIENT_PERSISTENT;
 
                if ($persistent === null) {
                    $address = "{$address}/{$parameters->persistent}";
                }
            }
        }
 
        $resource = $this->createStreamSocket($parameters, $address, $flags);
 
        return $resource;
    }
 
    /**
     * Initializes a UNIX stream resource.
     *
     * @param ParametersInterface $parameters Initialization parameters for the connection.
     *
     * @return resource
     */
    protected function unixStreamInitializer(ParametersInterface $parameters)
    {
        if (!isset($parameters->path)) {
            throw new InvalidArgumentException('Missing UNIX domain socket path.');
        }
 
        $flags = STREAM_CLIENT_CONNECT;
 
        if (isset($parameters->persistent)) {

Arguments

  1. Parameters {#374}
    
  2. "tcp://172.31.31.29:6379"
    
  3. 4
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

StreamConnection.php

     */
    protected function assertSslSupport(ParametersInterface $parameters)
    {
        if (
            filter_var($parameters->persistent, FILTER_VALIDATE_BOOLEAN) &&
            version_compare(PHP_VERSION, '7.0.0beta') < 0
        ) {
            throw new InvalidArgumentException('Persistent SSL connections require PHP >= 7.0.0.');
        }
    }
 
    /**
     * {@inheritdoc}
     */
    protected function createResource()
    {
        switch ($this->parameters->scheme) {
            case 'tcp':
            case 'redis':
                return $this->tcpStreamInitializer($this->parameters);
 
            case 'unix':
                return $this->unixStreamInitializer($this->parameters);
 
            case 'tls':
            case 'rediss':
                return $this->tlsStreamInitializer($this->parameters);
 
            default:
                throw new InvalidArgumentException("Invalid scheme: '{$this->parameters->scheme}'.");
        }
    }
 
    /**
     * Creates a connected stream socket resource.
     *
     * @param ParametersInterface $parameters Connection parameters.
     * @param string              $address    Address for stream_socket_client().
     * @param int                 $flags      Flags for stream_socket_client().
     *

Arguments

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

AbstractConnection.php

     *
     * @return mixed
     */
    abstract protected function createResource();
 
    /**
     * {@inheritdoc}
     */
    public function isConnected()
    {
        return isset($this->resource);
    }
 
    /**
     * {@inheritdoc}
     */
    public function connect()
    {
        if (!$this->isConnected()) {
            $this->resource = $this->createResource();
 
            return true;
        }
 
        return false;
    }
 
    /**
     * {@inheritdoc}
     */
    public function disconnect()
    {
        unset($this->resource);
    }
 
    /**
     * {@inheritdoc}
     */
    public function addConnectCommand(CommandInterface $command)
    {

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

StreamConnection.php

            $options['crypto_type'] = STREAM_CRYPTO_METHOD_TLS_CLIENT;
        }
 
        if (!stream_context_set_option($resource, array('ssl' => $options))) {
            $this->onConnectionError('Error while setting SSL context options');
        }
 
        if (!stream_socket_enable_crypto($resource, true, $options['crypto_type'])) {
            $this->onConnectionError('Error while switching to encrypted communication');
        }
 
        return $resource;
    }
 
    /**
     * {@inheritdoc}
     */
    public function connect()
    {
        if (parent::connect() && $this->initCommands) {
            foreach ($this->initCommands as $command) {
                $response = $this->executeCommand($command);
 
                if ($response instanceof ErrorResponseInterface) {
                    $this->onConnectionError("`{$command->getId()}` failed: $response", 0);
                }
            }
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function disconnect()
    {
        if ($this->isConnected()) {
            fclose($this->getResource());
            parent::disconnect();
        }
    }

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

AbstractConnection.php

     *
     * @param string $message Error message.
     */
    protected function onProtocolError($message)
    {
        CommunicationException::handle(
            new ProtocolException($this, static::createExceptionMessage($message))
        );
    }
 
    /**
     * {@inheritdoc}
     */
    public function getResource()
    {
        if (isset($this->resource)) {
            return $this->resource;
        }
 
        $this->connect();
 
        return $this->resource;
    }
 
    /**
     * {@inheritdoc}
     */
    public function getParameters()
    {
        return $this->parameters;
    }
 
    /**
     * Gets an identifier for the connection.
     *
     * @return string
     */
    protected function getIdentifier()
    {
        if ($this->parameters->scheme === 'unix') {

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

StreamConnection.php

    /**
     * {@inheritdoc}
     */
    public function disconnect()
    {
        if ($this->isConnected()) {
            fclose($this->getResource());
            parent::disconnect();
        }
    }
 
    /**
     * Performs a write operation over the stream of the buffer containing a
     * command serialized with the Redis wire protocol.
     *
     * @param string $buffer Representation of a command in the Redis wire protocol.
     */
    protected function write($buffer)
    {
        $socket = $this->getResource();
 
        while (($length = strlen($buffer)) > 0) {
            $written = @fwrite($socket, $buffer);
 
            if ($length === $written) {
                return;
            }
 
            if ($written === false || $written === 0) {
                $this->onConnectionError('Error while writing bytes to the server.');
            }
 
            $buffer = substr($buffer, $written);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function read()

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

StreamConnection.php

 
    /**
     * {@inheritdoc}
     */
    public function writeRequest(CommandInterface $command)
    {
        $commandID = $command->getId();
        $arguments = $command->getArguments();
 
        $cmdlen = strlen($commandID);
        $reqlen = count($arguments) + 1;
 
        $buffer = "*{$reqlen}rn${$cmdlen}rn{$commandID}rn";
 
        foreach ($arguments as $argument) {
            $arglen = strlen($argument);
            $buffer .= "${$arglen}rn{$argument}rn";
        }
 
        $this->write($buffer);
    }
}
 

Arguments

  1. """
    *2rn
    $6rn
    EXISTSrn
    $12rn
    LMPL-1962339rn
    """
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Connection

/

AbstractConnection.php

     */
    public function disconnect()
    {
        unset($this->resource);
    }
 
    /**
     * {@inheritdoc}
     */
    public function addConnectCommand(CommandInterface $command)
    {
        $this->initCommands[] = $command;
    }
 
    /**
     * {@inheritdoc}
     */
    public function executeCommand(CommandInterface $command)
    {
        $this->writeRequest($command);
 
        return $this->readResponse($command);
    }
 
    /**
     * {@inheritdoc}
     */
    public function readResponse(CommandInterface $command)
    {
        return $this->read();
    }
 
    /**
     * Helper method that returns an exception message augmented with useful
     * details from the connection parameters.
     *
     * @param string $message Error message.
     *
     * @return string
     */

Arguments

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Client.php

    {
        return $this->executeCommand(
            $this->createCommand($commandID, $arguments)
        );
    }
 
    /**
     * {@inheritdoc}
     */
    public function createCommand($commandID, $arguments = array())
    {
        return $this->profile->createCommand($commandID, $arguments);
    }
 
    /**
     * {@inheritdoc}
     */
    public function executeCommand(CommandInterface $command)
    {
        $response = $this->connection->executeCommand($command);
 
        if ($response instanceof ResponseInterface) {
            if ($response instanceof ErrorResponseInterface) {
                $response = $this->onErrorResponse($command, $response);
            }
 
            return $response;
        }
 
        return $command->parseResponse($response);
    }
 
    /**
     * Handles -ERR responses returned by Redis.
     *
     * @param CommandInterface       $command  Redis command that generated the error.
     * @param ErrorResponseInterface $response Instance of the error response.
     *
     * @throws ServerException
     *

Arguments

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

predis

/

predis

/

src

/

Client.php

        );
 
        if ($response instanceof ResponseInterface) {
            if ($response instanceof ErrorResponseInterface) {
                $error = true;
            }
 
            return (string) $response;
        }
 
        return $response;
    }
 
    /**
     * {@inheritdoc}
     */
    public function __call($commandID, $arguments)
    {
        return $this->executeCommand(
            $this->createCommand($commandID, $arguments)
        );
    }
 
    /**
     * {@inheritdoc}
     */
    public function createCommand($commandID, $arguments = array())
    {
        return $this->profile->createCommand($commandID, $arguments);
    }
 
    /**
     * {@inheritdoc}
     */
    public function executeCommand(CommandInterface $command)
    {
        $response = $this->connection->executeCommand($command);
 
        if ($response instanceof ResponseInterface) {
            if ($response instanceof ErrorResponseInterface) {

Arguments

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Redis

/

Connections

/

Connection.php

     * @param  Closure  $callback
     * @return void
     */
    public function psubscribe($channels, Closure $callback)
    {
        return $this->createSubscription($channels, $callback, __FUNCTION__);
    }
 
    /**
     * Run a command against the Redis database.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     */
    public function command($method, array $parameters = [])
    {
        $start = microtime(true);
 
        $result = $this->client->{$method}(...$parameters);
 
        $time = round((microtime(true) - $start) * 1000, 2);
 
        if (isset($this->events)) {
            $this->event(new CommandExecuted($method, $parameters, $time, $this));
        }
 
        return $result;
    }
 
    /**
     * Fire the given event if possible.
     *
     * @param  mixed  $event
     * @return void
     */
    protected function event($event)
    {
        if (isset($this->events)) {
            $this->events->dispatch($event);

Arguments

  1. "exists"
    
  2. array:1 [
      0 => "LMPL-1962339"
    ]
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Redis

/

Connections

/

Connection.php

    /**
     * Unset the event dispatcher instance on the connection.
     *
     * @return void
     */
    public function unsetEventDispatcher()
    {
        $this->events = null;
    }
 
    /**
     * Pass other method calls down to the underlying client.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public function __call($method, $parameters)
    {
        return $this->command($method, $parameters);
    }
}
 

Arguments

  1. "exists"
    
  2. array:1 [
      0 => "LMPL-1962339"
    ]
    

/

var

/

www

/

projects

/

www.latestly.com

/

app

/

helpers.php

    }else{
        $redisConsKey = $redis_key_prefix.$redisKey;
    }
 
    $result = $redis->set($redisConsKey, $redisValue);
    return true;
}
function getRedisData($redisKey, $responseType=true, $withoutkey=true){
    $redis_key_prefix = '';
    if($withoutkey == 'true')
        $redis_key_prefix = Config::get('ly_config.REDIS.REDIS_KEY_PREFIX');
    $redis = Redis::connection();
 
    if(strstr($redisKey, "LIVE-")){
        $redisConsKey = $redisKey;
    }else{
        $redisConsKey = $redis_key_prefix.$redisKey;
    }
    
    if($redis->exists($redisConsKey)){
        $result = $redis->get($redisConsKey);
 
        //$result = RedisSlave::getJSON($redisConsKey);
        if($responseType==true){
            $responseData = json_decode($result, true);
        }else{
            $responseData = json_decode($result);
        }    
        //remove before live
        if(config('ly_config.LYENV') == 'DEV' && is_array($responseData)){
            foreach ($responseData as $k => $article_data) {
                if(!empty($article_data['url'])){
                    $responseData[$k]['url'] = str_replace('http://dev.latestly.com/', config('ly_config.DOMAIN_URL'),$article_data['url']);
                }
            }
        }
        return $responseData;
    }else{
        return false;
    }

Arguments

  1. "exists"
    
  2. array:1 [
      0 => "LMPL-1962339"
    ]
    

/

var

/

www

/

projects

/

www.latestly.com

/

app

/

Http

/

Controllers

/

ArticleController.php

            $category_slug = $var1;
            $article_slug = $var2;
            $category_name = config('ly_config.PARENTCATEGORY.'.$category_slug);
            $main_category_slug = $category_slug;
            $main_category_name = $category_name;
        }else{
            $category_slug = $var1;
            $category_name = config('ly_config.PARENTCATEGORY.'.$category_slug);
            $sub_category_slug = $var2;
            $sub_category_name = config('ly_config.SCATEGORYSLUG.'.$category_slug.'.'.$sub_category_slug);
            $article_slug = $var3;
            $main_category_slug = $sub_category_slug;
            $main_category_name = $sub_category_name;
        }
 
        $articleSlug = explode("-", $article_slug);
        $article_id = $articleSlug[count($articleSlug)-1];
        $article_slug = str_replace('-'.$article_id,'', $article_slug);
        
        $articleData    = getRedisData($article_id, $responseType=true);
       
        //if wrong slug or id then url return 404
        if(empty($articleData)){
            $metaData = array(
                'pageTitle'=>'404 Page not found | Latestly.com',
                'description'=>'Please try one of the following pages.',
                'schema_title'=>'404 Page not found | Latestly.com',
                'pageType' => '404',
                'url'=>config('ly_config.DOMAIN_URL'),
                'og_image'=>config('ly_config.STATIC_DOMAIN').'images/logo-bangla.png'
            );
            $breadcrumb = breadcrumb(array(''=>'Page not found'), config('ly_config.DOMAIN_URL'), '404 Page not found | Latestly.com','true','true');
            $breadcrumb_mobile = breadcrumb_mobile(array(''=>'Page not found'),'true');
            $homePageData = [
                'metaData' => $metaData,
                'breadcrumb'       => $breadcrumb,
                'breadcrumb_mobile' => $breadcrumb_mobile
            ];
            return response()->view('template.' . 'FileNoteFound', compact('homePageData'), 404);
            exit;

Arguments

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Controller.php

    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return SymfonyComponentHttpFoundationResponse
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 

Arguments

  1. "entertainment"
    
  2. "south"
    
  3. "marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339"
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Controller.php

    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return SymfonyComponentHttpFoundationResponse
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 

Arguments

  1. array:2 [
      0 => ArticleController {#266}
      1 => "article"
    ]
    
  2. array:3 [
      "cat_slug" => "entertainment"
      "subcat_slug" => "south"
      "slug" => "marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339"
    ]
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

ControllerDispatcher.php

    {
        $this->container = $container;
    }
 
    /**
     * Dispatch a request to a given controller and method.
     *
     * @param  IlluminateRoutingRoute  $route
     * @param  mixed  $controller
     * @param  string  $method
     * @return mixed
     */
    public function dispatch(Route $route, $controller, $method)
    {
        $parameters = $this->resolveClassMethodDependencies(
            $route->parametersWithoutNulls(), $controller, $method
        );
 
        if (method_exists($controller, 'callAction')) {
            return $controller->callAction($method, $parameters);
        }
 
        return $controller->{$method}(...array_values($parameters));
    }
 
    /**
     * Get the middleware for the controller instance.
     *
     * @param  IlluminateRoutingController  $controller
     * @param  string  $method
     * @return array
     */
    public function getMiddleware($controller, $method)
    {
        if (! method_exists($controller, 'getMiddleware')) {
            return [];
        }
 
        return collect($controller->getMiddleware())->reject(function ($data) use ($method) {
            return static::methodExcludedByOptions($method, $data['options']);

Arguments

  1. "article"
    
  2. array:3 [
      "cat_slug" => "entertainment"
      "subcat_slug" => "south"
      "slug" => "marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339"
    ]
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Route.php

    protected function runCallable()
    {
        $callable = $this->action['uses'];
 
        return $callable(...array_values($this->resolveMethodDependencies(
            $this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses'])
        )));
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     *
     * @throws SymfonyComponentHttpKernelExceptionNotFoundHttpException
     */
    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->controller) {
            $class = $this->parseControllerCallback()[0];
 
            $this->controller = $this->container->make(ltrim($class, '\'));
        }
 
        return $this->controller;
    }
 
    /**

Arguments

  1. Route {#195}
    
  2. ArticleController {#266}
    
  3. "article"
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Route.php

     *
     * @throws UnexpectedValueException
     */
    protected function parseAction($action)
    {
        return RouteAction::parse($this->uri, $action);
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     */
    public function run()
    {
        $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.
     *
     * @return bool
     */
    protected function isControllerAction()
    {
        return is_string($this->action['uses']);
    }
 
    /**
     * Run the route action and return the response.

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Router.php

    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  IlluminateRoutingRoute  $route
     * @param  IlluminateHttpRequest  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  IlluminateRoutingRoute  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

use SymfonyComponentDebugExceptionFatalThrowableError;
 
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  Closure  $destination
     * @return Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Middleware

/

SubstituteBindings.php

     */
public function __construct(Registrar $router)
{
$this->router = $router;
}
/**
* Handle an incoming request.
*
* @param  IlluminateHttpRequest  $request
* @param  Closure  $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->router->substituteBindings($route = $request->route());
$this->router->substituteImplicitBindings($route);
return $next($request);
}
}

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#277 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Foundation

/

Http

/

Middleware

/

VerifyCsrfToken.php

    }
/**
* Handle an incoming request.
*
* @param  IlluminateHttpRequest  $request
* @param  Closure  $next
* @return mixed
*
* @throws IlluminateSessionTokenMismatchException
*/
public function handle($request, Closure $next)
{
if (
$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;
}
/**
* Determine if the HTTP request uses a ‘read’ verb.
*
* @param  IlluminateHttpRequest  $request
* @return bool
*/
protected function isReading($request)
{
return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
}

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#337 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

View

/

Middleware

/

ShareErrorsFromSession.php

     * Handle an incoming request.
*
* @param  IlluminateHttpRequest  $request
* @param  Closure  $next
* @return mixed
*/
public function handle($request, Closure $next)
{
// If the current session has an "errors" variable bound to it, we will share
// its value with all view instances so the views can easily access errors
// without having to bind. An empty bag is set when there aren't errors.
$this->view->share(
'errors', $request->session()->get('errors') ?: new ViewErrorBag
);
// 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);
}
}

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#338 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Session

/

Middleware

/

StartSession.php

     * @param  IlluminateHttpRequest  $request
* @param  Closure  $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->sessionHandled = true;
// If a session driver has been configured, we will need to start the session here
// so that the data is ready for an application. Note that the Laravel sessions
// do not make use of PHP "native" sessions in any way since they are crappy.
if ($this->sessionConfigured()) {
$request->setLaravelSession(
$session = $this->startSession($request)
);
$this->collectGarbage($session);
}
$response = $next($request);
// 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.
if ($this->sessionConfigured()) {
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
}
return $response;
}
/**
* Perform any final actions for the request lifecycle.
*
* @param  IlluminateHttpRequest  $request
* @param  SymfonyComponentHttpFoundationResponse  $response
* @return void
*/

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#339 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Cookie

/

Middleware

/

AddQueuedCookiesToResponse.php

     * Create a new CookieQueue instance.
*
* @param  IlluminateContractsCookieQueueingFactory  $cookies
* @return void
*/
public function __construct(CookieJar $cookies)
{
$this->cookies = $cookies;
}
/**
* Handle an incoming request.
*
* @param  IlluminateHttpRequest  $request
* @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;
}
}

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#340 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Cookie

/

Middleware

/

EncryptCookies.php

     * Disable encryption for the given cookie name(s).
*
* @param  string|array  $name
* @return void
*/
public function disableFor($name)
{
$this->except = array_merge($this->except, (array) $name);
}
/**
* Handle an incoming request.
*
* @param  IlluminateHttpRequest  $request
* @param  Closure  $next
* @return SymfonyComponentHttpFoundationResponse
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
* @param  SymfonyComponentHttpFoundationRequest  $request
* @return SymfonyComponentHttpFoundationRequest
*/
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $cookie) {
if ($this->isDisabled($key)) {
continue;
}
try {
$request->cookies->set($key, $this->decryptCookie($key, $cookie));
} catch (DecryptException $e) {
$request->cookies->set($key, null);
}

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#341 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

    public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param  Closure  $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Get the final piece of the Closure onion.
*
* @param  Closure  $destination
* @return Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
return $destination($passable);
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Router.php

     *
* @param  IlluminateRoutingRoute  $route
* @param  IlluminateHttpRequest  $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param  IlluminateRoutingRoute  $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
* Sort the given middleware by priority.
*

Arguments

  1. Closure($request) {#276 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Router.php

        return $route;
}
/**
* Return the response for the given route.
*
* @param  IlluminateHttpRequest  $request
* @param  IlluminateRoutingRoute  $route
* @return mixed
*/
protected function runRoute(Request $request, Route $route)
{
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new EventsRouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param  IlluminateRoutingRoute  $route
* @param  IlluminateHttpRequest  $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)

Arguments

  1. Route {#195}
    
  2. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Router.php

     *
* @param  IlluminateHttpRequest  $request
* @return IlluminateHttpResponse|IlluminateHttpJsonResponse
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param  IlluminateHttpRequest  $request
* @return mixed
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param  IlluminateHttpRequest  $request
* @return IlluminateRoutingRoute
*/
protected function findRoute($request)
{
$this->current = $route = $this->routes->match($request);
$this->container->instance(Route::class, $route);
return $route;
}
/**
* Return the response for the given route.
*

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Route {#195}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Router.php

     * @return mixed
*/
public function respondWithRoute($name)
{
$route = tap($this->routes->getByName($name))->bind($this->currentRequest);
return $this->runRoute($this->currentRequest, $route);
}
/**
* Dispatch the request to the application.
*
* @param  IlluminateHttpRequest  $request
* @return IlluminateHttpResponse|IlluminateHttpJsonResponse
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param  IlluminateHttpRequest  $request
* @return mixed
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param  IlluminateHttpRequest  $request
* @return IlluminateRoutingRoute
*/
protected function findRoute($request)

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Foundation

/

Http

/

Kernel.php

     * @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return Closure
*/
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  IlluminateHttpRequest  $request
* @param  IlluminateHttpResponse  $response
* @return void
*/
public function terminate($request, $response)
{
$this->terminateMiddleware($request, $response);
$this->app->terminate();
}
/**
* Call the terminate method on any terminable middleware.
*

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

use SymfonyComponentDebugExceptionFatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param  Closure  $destination
* @return Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

fideloper

/

proxy

/

src

/

TrustProxies.php

    {
$this->config = $config;
}
/**
* Handle an incoming request.
*
* @param IlluminateHttpRequest $request
* @param Closure                 $next
*
* @throws SymfonyComponentHttpKernelExceptionHttpException
*
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
* @param IlluminateHttpRequest $request
*/
protected function setTrustedProxyIpAddresses(Request $request)
{
$trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
// Only trust specific IP addresses
if (is_array($trustedIps)) {
return $this->setTrustedProxyIpAddressesToSpecificIps($request, $trustedIps);
}
// Trust any IP address that calls us
// `**` for backwards compatibility, but is depreciated
if ($trustedIps === '*' || $trustedIps === '**') {
return $this->setTrustedProxyIpAddressesToTheCallingIp($request);

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#135 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Foundation

/

Http

/

Middleware

/

TransformsRequest.php

     *
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param  IlluminateHttpRequest  $request
* @param  Closure  $next
* @param  array  ...$attributes
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param  IlluminateHttpRequest  $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} elseif ($request->request !== $request->query) {
$this->cleanParameterBag($request->request);
}
}
/**

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#247 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Foundation

/

Http

/

Middleware

/

TransformsRequest.php

     *
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param  IlluminateHttpRequest  $request
* @param  Closure  $next
* @param  array  ...$attributes
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param  IlluminateHttpRequest  $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} elseif ($request->request !== $request->query) {
$this->cleanParameterBag($request->request);
}
}
/**

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#248 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Foundation

/

Http

/

Middleware

/

ValidatePostSize.php

class ValidatePostSize
{
/**
* Handle an incoming request.
*
* @param  IlluminateHttpRequest  $request
* @param  Closure  $next
* @return mixed
*
* @throws IlluminateHttpExceptionsPostTooLargeException
*/
public function handle($request, Closure $next)
{
$max = $this->getPostMaxSize();
if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException;
}
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;
}
$metric = strtoupper(substr($postMaxSize, -1));
$postMaxSize = (int) $postMaxSize;
switch ($metric) {
case 'K':
return $postMaxSize * 1024;
case 'M':

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#249 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Foundation

/

Http

/

Middleware

/

CheckForMaintenanceMode.php

     *
* @throws SymfonyComponentHttpKernelExceptionHttpException
*/
public function handle($request, Closure $next)
{
if ($this->app->isDownForMaintenance()) {
$data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
return $next($request);
}
if ($this->inExceptArray($request)) {
return $next($request);
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
* @param  IlluminateHttpRequest  $request
* @return bool
*/
protected function inExceptArray($request)
{
foreach ($this->except as $except) {
if ($except !== '/') {
$except = trim($except, '/');
}
if ($request->fullUrlIs($except) || $request->is($except)) {
return true;
}
}

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

                    // the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->container->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param  string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    
  2. Closure($passable) {#250 …6}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Routing

/

Pipeline.php

                return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param  mixed  $passable
* @param  Exception  $e
* @return mixed
*
* @throws Exception
*/
protected function handleException($passable, Exception $e)
{

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Pipeline

/

Pipeline.php

    public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param  Closure  $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Get the final piece of the Closure onion.
*
* @param  Closure  $destination
* @return Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
return $destination($passable);
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return Closure
*/

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Foundation

/

Http

/

Kernel.php

    }
/**
* Send the given request through the middleware / router.
*
* @param  IlluminateHttpRequest  $request
* @return IlluminateHttpResponse
*/
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$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());
}
}
/**
* Get the route dispatcher callback.
*
* @return Closure
*/
protected function dispatchToRouter()

Arguments

  1. Closure($request) {#22 …5}
    

/

var

/

www

/

projects

/

www.latestly.com

/

vendor

/

laravel

/

framework

/

src

/

Illuminate

/

Foundation

/

Http

/

Kernel.php

            $router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->aliasMiddleware($key, $middleware);
}
}
/**
* Handle an incoming HTTP request.
*
* @param  IlluminateHttpRequest  $request
* @return IlluminateHttpResponse
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new EventsRequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

/

var

/

www

/

projects

/

www.latestly.com

/

public

/

index.php

*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(IlluminateContractsHttpKernel::class);
$response = $kernel->handle(
$request = IlluminateHttpRequest::capture()
);
$response->send();
$kernel->terminate($request, $response);

Arguments

  1. Request {#42
    #json: null
    #convertedFiles: null
    #userResolver: Closure($guard = null) {#267 …6}
    #routeResolver: Closure() {#269 …5}
    +attributes: ParameterBag {#44}
    +request: ParameterBag {#50}
    +query: ParameterBag {#50}
    +server: ServerBag {#46}
    +files: FileBag {#47}
    +cookies: ParameterBag {#45}
    +headers: HeaderBag {#48}
    #content: null
    #languages: null
    #charsets: null
    #encodings: null
    #acceptableContentTypes: array:1 [
    0 => "*/*"
    ]
    #pathInfo: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #requestUri: "/entertainment/south/marakkar-arabikadalinte-simham-mohanlal-cuts-a-striking-pose-in-this-new-still-from-the-upcoming-malayalam-period-drama-view-pic-1962339.html"
    #baseUrl: ""
    #basePath: null
    #method: "GET"
    #format: null
    #session: Store {#353}
    #locale: null
    #defaultLocale: "en"
    -isHostValid: true
    -isForwardedValid: true
    basePath: ""
    format: "html"
    }
    

Continue Reading
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Entertainment News

Star Wars, Hunger Games, The Big Bang Theory – Brie Larson Reveals 8 Major Projects She Auditioned For But Didn’t Get (Watch Video)

Published

on

Brie Larson may be a famous actor today known for her performances in films such as Room and Captain Marvel but the actress has been through her share of tough phases and lost out on some really amazing films. Considering the Academy Award-winning actress’ acting talents, it almost seems impossible that Larson may have faced rejections in Hollywood but much to our surprise, it is true. The actress recently started her own YouTube channel and has been posting sme amazing stuff. In her latest video, Brie spoke about failure and rejections as an actor. Brie Larson’s Captain Marvel To Fight Tom Holland’s Spider-man In Upcoming Sequel?

If you have watched certain films and wondered what they would be like had Brie Larson been cast in them, well you’ll be delighted to know, the actress did audition for quite a bit of them. In her latest video, Brie Larson revealed some of the biggest projects that she auditioned for but lost out getting cast in them due to whatever reasons. Not only films, but the actress also reveals a few famous TV series that she auditioned for. Here’s a list of projects that could have starred Brie Larson but unfortunately didn’t! Captain Marvel 2 Hires Nia DaCosta as Director, Ryan Fleck Congratulates.

1. Hunger Games

Hunger Games (Photo Credits: Movie Still)

Hunger Games (Photo Credits: Movie Still)

2. Terminator Genisys

Terminator Genisys

Terminator Genisys (Photo Credits: Twitter)

3. Star Wars

Star Wars: The Rise Of Skywalker

Star Wars: The Rise Of Skywalker (Photo Credits: Twitter)

4. The Big Bang Theory

TBBT(Photo Credits: Instagram)

TBBT (Photo Credits: Instagram)

5. Gossip Girl

Gossip Girl

Gossip Girl (Photo Credits: Instagram)

6. Tomorrowland

Tomorrowland

Tomorrowland (Photo Credits: Twitter)

7. Spy Kid (As a child actor)

Spy Kids(Photo Credits: Twitter)

Spy Kids(Photo Credits: Twitter)

8. Hearts In Atlantis (As a child actor)

Hearts in Atlantis

Hearts in Atlantis (Photo Credits: Twitter)

Check Out Brie Larson’s YouTube Video Here:

We bet you’re surprised to find out how Brie Larson lost out on these amazing roles, knowing that she could have totally killed it. The last time we saw her on Jimmy Fallon’s show playing the lightsabre game was when we hoped to see her in the Star Wars series, wouldn’t she have truly rocked as a Jedi? Well, there’s always another time. It’s amazing how Larson has opened up about these big rejections and showed her fans acting isn’t really an easy job.

(The above story first appeared on LatestLY on Aug 15, 2020 03:06 PM IST. For more news and updates on politics, world, sports, entertainment and lifestyle, log on to our website latestly.com).

Continue Reading

Trending