1
0
Fork 0
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:
lukinovec 2022-09-28 09:48:24 +02:00
commit b56934674a
107 changed files with 976 additions and 734 deletions

View file

@ -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);