Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.8] Allow lock to be configured in local filesystems #28124
The Local adapter from Flysystem uses a lock for read/writes by default, but it allows this parameter to be changed in the constructor: https://flysystem.thephpleague.com/docs/adapter/local/
This commit allows developers to change this behavior in the
'local' => [ 'driver' => 'local', 'root' => storage_path('app'), 'lock' => 0, ],
I had to make a ServiceProvider to get this done. Here you have my code for a (temporary) fix.