title: How to create a factory with images for testing
body: <p>I need to create a factory that create images for testing. The factory should create images and save them on storage and after the test everything should be erased.</p>
  
  <p>How can I do that ?</p>
  
  <p>What I am thinking now is to put the <em>fields at null</em> on the factory and then using the <code>afterCreating</code> method to save the images manually but it has to be a better way to do that right ?</p>
  
  <p>What I want to achieve is :</p>
  
  <pre><code>factory(Category::class)-&gt;create();
  </code></pre>
  
  <p>That will generate all images.</p>
  
  <p><strong>$faker->image does not work anymore since LoremPixel (the provider) is really slow or down most of the time.</strong> </p>