public function handle(Request $request, Closure $next)
    {
        // We must let the response get handled before naming the transaction, otherwise the necessary route i
        // information won't be available in the request object.
        $response = $next($request);

        $this->newRelic->nameTransaction($this->getTransactionName($request));

        return $response;
    }
public function handle(Request $request, Closure $next)
    {
        // We must let the response get handled before naming the transaction, otherwise the necessary route i
        // information won't be available in the request object.
        $response = $next($request);

        $this->newRelic->nameTransaction($this->getTransactionName($request));

        return $response;
    }
public function handle ( Request $ request , Closure $ next ) { // We must let the response get handled before naming the transaction, otherwise the necessary route i // information won't be available in the request object. $ response = $ next ( $ request ) ; $ this -> newRelic -> nameTransaction ( $ this -> getTransactionName ( $ request ) ) ; return $ response ; }
Handles the request by naming the transaction for New Relic

@param Request $request
@param Closure $next
Handles the request by naming the transaction for New Relic