mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 23:24:03 +00:00
runForMultiple can scope pending tenants
This commit is contained in:
parent
b73d047a39
commit
0a37eb487a
9 changed files with 47 additions and 11 deletions
|
|
@ -16,9 +16,9 @@ use Stancl\Tenancy\Contracts\Tenant;
|
|||
*/
|
||||
class TenantCollection extends Collection
|
||||
{
|
||||
public function runForEach(callable $callable): self
|
||||
public function runForEach(callable $callable, bool $withPending = null): self
|
||||
{
|
||||
tenancy()->runForMultiple($this->items, $callable);
|
||||
tenancy()->runForMultiple($this->items, $callable, $withPending);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue