Add support for seeding nests and eggs

This commit is contained in:
Dane Everitt
2017-11-03 23:07:18 -05:00
parent 99aceaca38
commit f8c89f8331
21 changed files with 862 additions and 18 deletions

View File

@@ -75,7 +75,7 @@ class EggImporterService
*/
public function handle(UploadedFile $file, int $nest): Egg
{
if (! $file->isValid() || ! $file->isFile()) {
if ($file->getError() !== UPLOAD_ERR_OK || ! $file->isFile()) {
throw new InvalidFileUploadException(trans('exceptions.nest.importer.file_error'));
}