kevin-mitchell / alexa-app

Set of classes to make creating Amazon Alexa Skills Kit (ASK) applications easier with Laravel and Lumen
MIT License
97 stars 47 forks source link

Not possible to use route:cache #53

Open m-ristau opened 6 years ago

m-ristau commented 6 years ago

First of all: Thanks for this repository.

I noticed that i can't use php artisan route:cache anymore, because the following part in LaravelServiceProvider @ 22 is using a closure.

    if ($this->app['config']['alexa.audio.proxy.enabled'])
    {
        Route::get($this->app['config']['alexa.audio.proxy.route'] . '/{audiofile}', function($audiofile) {
            return response(base64_decode($audiofile))
                ->header('Content-Type', 'application/x-mpegurl');
        });
    }

Maybe there is a chance to fix that. Thanks in advance and keep up the good work.

Laravel: 5.5.4 PHP: 7.1.15