make()->each(function (Testimonial $testimonial) { $testimonial->picture = FileStorageHelper::storeFile($testimonial, new \SplFileInfo(\resource_path( '../database/factories/assets/testimonials/default-picture-292x417.png' ))); $testimonial->saveOrFail(); }); } }