We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04cf99f commit 3de8444Copy full SHA for 3de8444
README.md
@@ -19,10 +19,10 @@ Prevents overlapping for artisan console commands.
19
2. Use `Illuminated\Console\WithoutOverlapping` trait in your console command class:
20
```php
21
namespace App\Console\Commands;
22
-
+
23
use Illuminate\Console\Command;
24
use Illuminated\Console\WithoutOverlapping;
25
26
class Foo extends Command
27
{
28
use WithoutOverlapping;
@@ -56,3 +56,22 @@ class Foo extends Command
56
// ...
57
}
58
```
59
60
+Or by using `setMutexStrategy()` method:
61
62
+```php
63
+class Foo extends Command
64
+{
65
+ use WithoutOverlapping;
66
67
+ public function __construct()
68
+ {
69
+ parent::__construct();
70
71
+ $this->setMutexStrategy('mysql');
72
+ }
73
74
+ // ...
75
+}
76
77
+```
0 commit comments