title: laravel generating fake images from a specific path
body: <p>I'm working on a business website with Laravel. I'm trying to generate fake images with a factory to make tests easier but it's not working because I don't know <strong>how to add the path of my images in the code</strong>. </p>
  
  <p>The code which generate fake data in database:</p>
  
  <p><img src="https://i.stack.imgur.com/vbMIs.png" /></p>
  
  <p>I saw on youtube a training video in which we attach media information to a Laravel application through a package <code>spatie/laravel-medialibrary</code> but it's not clear.</p>
  
  <p>Can anyone please explain this. </p>