mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 13:04:03 +00:00
Merge branch 'master' into stein-j-readied-tenant
This commit is contained in:
commit
b56934674a
107 changed files with 976 additions and 734 deletions
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Stancl\Tenancy\Database;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Stancl\Tenancy\Contracts\Tenant;
|
||||
|
||||
|
|
@ -16,7 +17,7 @@ use Stancl\Tenancy\Contracts\Tenant;
|
|||
*/
|
||||
class TenantCollection extends Collection
|
||||
{
|
||||
public function runForEach(callable $callable, bool $withPending = null): self
|
||||
public function runForEach(Closure $callable, bool $withPending = null): self
|
||||
{
|
||||
tenancy()->runForMultiple($this->items, $callable, $withPending);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue