make()->each(function (NewsBreeding $newsBreeding) { $newsBreeding->picture = FileStorageHelper::storeFile( $newsBreeding, new \SplFileInfo(\resource_path( '../database/factories/assets/news_breeding/default-700x400.jpg' )) ); $newsBreeding->save(); }); } }