scoutapp / scout-apm-laravel

ScoutAPM PHP Agent for the Laravel Framework
MIT License
22 stars 12 forks source link

Verify config:cache command works #33

Closed cschneid closed 4 years ago

cschneid commented 4 years ago

A user has reported the Scout's configuration is not being picked up in a cached configuration setting (artisan config:cache).

Maybe we need a LaravelConfigSource class to our config stack which uses config('key') to look for values?

A different issue I noticed this morning is that Scout doesn't seem to work with a cached laravel config file. If I run "artisan config:cache", the resulting config file doesn't have any Scout config, for some reason. But if I remove the cached config, everything works as expected.

Some maybe relevant laravel docs: https://laravel.com/docs/6.x/packages#configuration