mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:44:04 +00:00
add early exit for 'runForMultiple' method
This commit is contained in:
parent
8f9c7efa45
commit
f5e0959136
1 changed files with 4 additions and 1 deletions
|
|
@ -157,7 +157,10 @@ class Tenancy
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->initialize($tenant);
|
$this->initialize($tenant);
|
||||||
$callback($tenant);
|
|
||||||
|
if (! $callback($tenant)) {
|
||||||
|
break;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($originalTenant) {
|
if ($originalTenant) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue