src/Provider/LumenServiceProvider.php
public function register()
    {
        $this->setupConfig();
        $reflection = new ReflectionClass($this->app);
        $this->app->instance('app.middleware', $this->gatherAppMiddleware($reflection));

        $this->app->register('Develpr\AlexaApp\Provider\AlexaServiceProvider');

        $this->addRequestMiddlewareToBeginning($reflection);
    }
public function register()
    {
        $this->setupConfig();
        $reflection = new ReflectionClass($this->app);
        $this->app->instance('app.middleware', $this->gatherAppMiddleware($reflection));

        $this->app->register('Develpr\AlexaApp\Provider\AlexaServiceProvider');

        $this->addRequestMiddlewareToBeginning($reflection);
    }
Register the service provider.

@return void