mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
all() instead of cursor()
This commit is contained in:
parent
4a3c31b170
commit
b49c6060c9
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ $ php artisan tinker
|
|||
Now we'll create a user inside each tenant's database:
|
||||
|
||||
```php
|
||||
App\Tenant::cursor()->runForEach(function () {
|
||||
App\Tenant::all()->runForEach(function () {
|
||||
factory(App\User::class)->create();
|
||||
});
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue