Failing builds: "database/factories" and "database/seeders" was expected to exist
binaryfire opened this issue · comments
Hi guys
It looks like the build command requires the database/factories
and database/seeders
directories to exist even if the database
plugin isn't installed:
build command without -v
:
ErrorException
rename(/home/my-username/laravel-zero-project/test.phar,/home/my-username/laravel-zero-project/test/builds/test): No such file or directory
build command with -v
:
In Assert.php line 1012:
[_HumbugBoxb47773b41c19\Webmozart\Assert\InvalidArgumentException]
File or directory "/home/my-username/laravel-zero-project/database/factories" was expected to exist.
// And if database/factories exists but database/seeders doesn't:
File or directory "/home/my-username/laravel-zero-project/database/seeders" was expected to exist.
Creating both these empty directories allows the build to succeed.
Sorry my mistake. Looks like I somehow wiped out the contents of box.json without realising.