title: Voyager for Laravel 5: Wrong paths for images
body: <p>Having created a new user via Voyager, the avatar was showing as a broken image. I uploaded a new image, but the image remained broken.</p>
  
  <p>I checked with Console in Google Chrome and found 3 404 errors:</p>
  
  <blockquote>
    <p>2017-06-19 10:53:50.159
    <a href="http://localhost:8888/storage/users/June2017/ypKlbqbATDbpnYctZBFp.png" rel="noreferrer">http://localhost:8888/storage/users/June2017/ypKlbqbATDbpnYctZBFp.png</a>
    Failed to load resource: the server responded with a status of 404
    (Not Found)</p>
    
    <p>2017-06-19 10:53:50.256
    <a href="http://localhost:8888/storage/users/June2017/ypKlbqbATDbpnYctZBFp.png" rel="noreferrer">http://localhost:8888/storage/users/June2017/ypKlbqbATDbpnYctZBFp.png</a>
    Failed to load resource: the server responded with a status of 404
    (Not Found)</p>
    
    <p>2017-06-19 10:53:50.473
    <a href="http://localhost:8888/vendor/tcg/voyager/assets/images/bg.jpg" rel="noreferrer">http://localhost:8888/vendor/tcg/voyager/assets/images/bg.jpg</a> Failed
    to load resource: the server responded with a status of 404 (Not
    Found) When I looked at the project, the paths for the 2 storage
    errors are: <a href="http://localhost:8888/storage/app/public/users/" rel="noreferrer">http://localhost:8888/storage/app/public/users/</a> and:
    <a href="http://localhost:8888/storage/app/public/users/June2017" rel="noreferrer">http://localhost:8888/storage/app/public/users/June2017</a></p>
  </blockquote>
  
  <p>While in Media, I'm seeing similar path problems when navigating the folders:</p>
  
  <blockquote>
    <p>2017-06-19 11:38:22.248 %7B%7B%20selected_file.path%20%7D%7D:1 GET
    <a href="http://localhost:8888/development/PhpstormProjects/Search4Venues/public/admin/%7B%7B%20selected_file.path%20%7D%7D" rel="noreferrer">http://localhost:8888/development/PhpstormProjects/Search4Venues/public/admin/%7B%7B%20selected_file.path%20%7D%7D</a>
    404 (Not Found)</p>
  </blockquote>
  
  <p>Anticipating the question, in <code>.env</code>, I have: <code>APP_URL=http://localhost:8888</code></p>
  
  <p>Is this a configuration error?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>A colleague with more experience than me has been through Voyager and found some inconsistencies, which he's attempted to fix.</p>
  
  <p>In <code>app.php</code>, we've had to change:</p>
  
  <pre><code>'url' =&gt; env('APP_URL', 'http://localhost:8888/development/PhpstormProjects/Search4Venues'),
  </code></pre>
  
  <p>... to:</p>
  
  <pre><code>'url' =&gt; env('APP_URL', 'http://localhost:8888'),
  </code></pre>
  
  <p>In <code>filesystems.php</code>, we've had to change:</p>
  
  <pre><code>'public' =&gt; [
      'driver' =&gt; 'local',
      'root' =&gt; storage_path('app/public'),
      'url' =&gt; env('APP_URL').'/storage',
      'visibility' =&gt; 'public',
  ]
  </code></pre>
  
  <p>... to:</p>
  
  <pre><code>'public' =&gt; [
      'driver' =&gt; 'local',
      'root' =&gt; storage_path('app/public'),
      'url' =&gt; env('APP_URL').'/development/PhpstormProjects/Search4Venues/public/storage',
      'visibility' =&gt; 'public',
  ]
  </code></pre>
  
  <p>However, he discovered other problems in <code>config/voyager.php</code>:</p>
  
  <pre><code>'assets_path' =&gt; '/vendor/tcg/voyager/assets',
  </code></pre>
  
  <p>... where it too appears to be missing <code>PhpstormProjects/Search4Venues</code> from the path:</p>
  
  <pre><code>http://localhost:8888/vendor/tcg/voyager/assets/images/bg.jpg
  </code></pre>
  
  <p>At this stage, we have no idea what else could be wrong with Voyager.</p>