make()->each(function (Reduction $reduction) { $reduction->picture_packshot = FileStorageHelper::storeFile( new Reduction(), new \SplFileInfo( \resource_path('../database/factories/assets/reductions/default-picture-266x266.png') ) ); $reduction->saveQuietly(); }); } }