Skip to content

Commit e1ba204

Browse files
committed
getMutexFileStorage method added - readme.
1 parent b5adea1 commit e1ba204

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,25 @@ class ExampleCommand extends Command
153153
}
154154
```
155155
156+
### Custom mutex file storage
157+
158+
If you're using `file` strategy, mutex files will be stored at `storage/app` folder, by default. However, you can change storage
159+
folder by overriding `getMutexFileStorage` method in your command:
160+
161+
```php
162+
class ExampleCommand extends Command
163+
{
164+
use WithoutOverlapping;
165+
166+
public function getMutexFileStorage()
167+
{
168+
return storage_path('my/custom/path');
169+
}
170+
171+
// ...
172+
}
173+
```
174+
156175
## Troubleshooting
157176

158177
### Trait included, but nothing happens?

0 commit comments

Comments
 (0)