Handle missing Flysystem env vars; let Debugbar autodiscover (#6514)

This commit is contained in:
Brady Wetherington 2018-12-17 14:04:56 -08:00 committed by snipe
parent 1fdb057199
commit 89a325c0ea
2 changed files with 3 additions and 3 deletions

View file

@ -250,7 +250,7 @@ return [
* Package Service Providers...
*/
Barryvdh\Debugbar\ServiceProvider::class,
// Barryvdh\Debugbar\ServiceProvider::class, // should be auto-discovered
Intervention\Image\ImageServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
Spatie\Backup\BackupServiceProvider::class,
@ -330,7 +330,7 @@ return [
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
'Debugbar' => Barryvdh\Debugbar\Facade::class,
// 'Debugbar' => Barryvdh\Debugbar\Facade::class, //autodiscover should handle this
'Image' => Intervention\Image\ImageManagerStatic::class,
'Carbon' => Carbon\Carbon::class,

View file

@ -81,7 +81,7 @@ $config = [
];
// When you're dealing with local file storage, the paths will be different than S3
if (env('FILESYSTEM_DISK')!='local')
if (env('FILESYSTEM_DISK','local')!='local')
{
$config['disks']['public'] = $config['disks'][env('FILESYSTEM_DISK')];
$config['disks']['public']['visibility'] = 'public';