all() instead of cursor()

This commit is contained in:
Samuel Štancl 2020-06-09 22:34:57 +02:00
parent 4a3c31b170
commit b49c6060c9

View file

@ -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();
});
```