hooks icon indicating copy to clipboard operation
hooks copied to clipboard

[BUG] Writes hooks.js to wrong filesystem

Open bredmor opened this issue 6 years ago • 0 comments

  • Hooks Version: 1.0.8
  • Laravel Version: 5.8.24
  • PHP Version: 7.3
  • Integration: voyager-hooks

Description:

The package attempts to write and load from base_path('hooks/hooks.json'), regardless of available disks in config/filesystems.php. This breaks on frozen filesystems such as AWS Lambda and Google App Engine.

Steps To Reproduce:

Attempt to use the package without write permissions to the local FS. Changing disk configurations in laravel settings is not respected and has no effect.

bredmor avatar Jun 22 '19 22:06 bredmor