public function modifyResponse(Request $request, Response $response)
    {
        $app = $this->app;

        if (is_admin_panel() || $app->runningInConsole() || $this->isDebugbarRequest() || $request->ajax()) {
            return $response;
        }

        $this->injectAdminBar($response);

        return $response;
    }
public function modifyResponse(Request $request, Response $response)
    {
        $app = $this->app;

        if (is_admin_panel() || $app->runningInConsole() || $this->isDebugbarRequest() || $request->ajax()) {
            return $response;
        }

        $this->injectAdminBar($response);

        return $response;
    }
public function modifyResponse ( Request $ request , Response $ response ) { $ app = $ this -> app ; if ( is_admin_panel ( ) || $ app -> runningInConsole ( ) || $ this -> isDebugbarRequest ( ) || $ request -> ajax ( ) ) { return $ response ; } $ this -> injectAdminBar ( $ response ) ; return $ response ; }
Modify the response and inject the admin bar

@param  Request $request
@param  Response $response
@return Response
Modify the response and inject the admin bar