1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:34:04 +00:00

add early exit for 'runForMultiple' method

This commit is contained in:
David Vařílek 2024-08-22 19:10:25 +02:00
parent 8f9c7efa45
commit f5e0959136

View file

@ -157,7 +157,10 @@ class Tenancy
} }
$this->initialize($tenant); $this->initialize($tenant);
$callback($tenant);
if (! $callback($tenant)) {
break;
};
} }
if ($originalTenant) { if ($originalTenant) {