When seeding the database in the step yarn seed, the following error occurs:
Seeding: Database\Seeders\ApiSpecsTableSeeder
ErrorException
copy(/var/www/html/storage/app/openapis/k68xX4vorUjQzHTxG6olwvKBGUnOpPAc.yaml): failed to open stream: No such file or directory
at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:302
298▕ * @return bool
299▕ */
300▕ public function copy($path, $target)
301▕ {
➜ 302▕ return copy($path, $target);
303▕ }
304▕
305▕ /**
306▕ * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
+2 vendor frames
3 database/seeders/ApiSpecsTableSeeder.php:44
Illuminate\Support\Facades\Facade::__callStatic("copy")
4 database/seeders/ApiSpecsTableSeeder.php:20
Database\Seeders\ApiSpecsTableSeeder::getApiSpecsData()
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When seeding the database in the step
yarn seed
, the following error occurs: