title: Laravel 7 - not getting storage image path correctly
body: <p>I am unable to fetch the correct image URL to display in view using the asset. The generated URL required <code>storage</code> which is missing in it when I use the <code>asset</code> function and I have to manually add <code>storage</code> in the path like <code>asset('storage/' . $post-&gt;image)</code></p>
  <p><strong>I don't understand why the Laravel doesn't add <code>storage</code> automatically?</strong></p>
  <h2>symlink storage</h2>
  <p>I have created a symlink of storage folder using the following command</p>
  <pre><code>php artisan storage:link
  </code></pre>
  <blockquote>
  <p><strong>Question:</strong><br />
  What I am looking for is the <code>storage</code> folder should be dynamically added to the path so I have to pass only <code>$post-&gt;image</code>.</p>
  </blockquote>
  <h2>Controller</h2>
  <pre><code>public function store(PostRequest $request)
  {
      // upload the image to storage
      $image = $request-&gt;image-&gt;store('posts', 'public');
  
      // create the post
      Post::create([
          'title'       =&gt; $request-&gt;title,
          'description' =&gt; $request-&gt;description,
          'content'     =&gt; $request-&gt;content,
          'image'       =&gt; $image,
      ]);
  
      // redirect with flash message
      return redirect(route('posts.index'))-&gt;with('success', 'Post is created');
  
  }
  </code></pre>
  <h2>DB <code>image</code> Column Stored Path</h2>
  <pre><code>posts/ibexiCvUvbPKxzOLSMHQKPpDq7eZXrFA0stBoPfw.jpeg
  </code></pre>
  <h2>View</h2>
  <pre><code>&lt;tbody&gt;
  @foreach($posts as $post)
      &lt;tr&gt;
          &lt;td&gt;
              &lt;img src=&quot;{{asset($post-&gt;image)}}&quot;  width=&quot;60&quot; height=&quot;60&quot; alt=&quot;&quot;&gt;
          &lt;/td&gt;
          &lt;td&gt;{{ $post-&gt;title }}&lt;/td&gt;
      &lt;/tr&gt;
  @endforeach
  &lt;/tbody&gt;
  </code></pre>
  <h2>Storage Path</h2>
  <p><a href="https://i.stack.imgur.com/RyUhX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RyUhX.png" alt="enter image description here" /></a></p>
  <h2>HTML Source</h2>
  <p><a href="https://i.stack.imgur.com/IsOm4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IsOm4.png" alt="enter image description here" /></a></p>
  <p>As you can see in the above references to get the correct URL I have to add <code>storage</code> into <code>asset('storage/'. $post-&gt;image)</code></p>