samedi 17 avril 2021

InvalidArgumentException

C:\xampp\htdocs\perpustakaan-digital>php artisan db:seed

InvalidArgumentException : You requested 1 items, but there are only 0 items available.

at C:\xampp\htdocs\perpustakaan-digital\vendor\laravel\framework\src\Illuminate\Support\Arr.php:476 472| 473| $count = count($array); 474| 475| if ($requested > $count) {

476| throw new InvalidArgumentException( 477| "You requested {$requested} items, but there are only {$count} items available." 478| ); 479| } 480|

Exception trace:

1 Illuminate\Support\Arr::random([]) C:\xampp\htdocs\perpustakaan-digital\vendor\laravel\framework\src\Illuminate\Support\Collection.php:1497

2 Illuminate\Support\Collection::random() C:\xampp\htdocs\perpustakaan-digital\database\factories\BukuFactory.php:18

Please use the argument -v to see more details.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire