title: Image doesn't save in public folder laravel
body: <p>I'm learning laravel but I have problem now with the image,
  I want it to save it in storage/app/public/avatar so I can show it, but it keep saving it in storage/app/avatar</p>
  
  <p>I write this in the .env</p>
  
  <pre><code>FILESYSTEM_DRIVER=public
  </code></pre>
  
  <p>And then I generate the storage link</p>
  
  <pre><code>php artisan storage:link 
  </code></pre>
  
  <p>but still the same, every time I upload a photo it saving it in storage/app/avatar</p>
  
  <p>Anyone can help me?</p>
  
  <p>In filesystems.php</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>Here :</p>
  
  <pre><code> $attributes['avatar'] = request('avatar')-&gt;store('public/avatars');
  </code></pre>
  
  <p>In USer.php</p>
  
  <pre><code>public function getAvatarAttribute($value)
  {
      return asset($value);
  }
  </code></pre>
  
  <p>this method was working correctly when i was using a random avatar link,
  but now it show nothing, i check my database and the link is there and it's right  </p>
  
  <pre><code>public function getAvatarAttribute($value)
   {
      asset('storage/avatars/'.$image-&gt;name);
   }
  
  $attributes['avatar'] = request('avatar')-&gt;store('public/avatars');
  </code></pre>
  
  <p>In the controller, update method:</p>
  
  <pre><code>    $user-&gt;update($attributes);
      $user-&gt;password = Hash::make($user['password']);
      $user-&gt;save();
      return redirect($user-&gt;path());
  </code></pre>
  
  <p>In the show.blade</p>
  
  <pre><code> &lt;img
              src= "{{ $user-&gt;avatar }}"
              alt=""
              class="rounded-full mr-4 absolute"
              style="width: 150px; left: calc(50% - 75px); top: 300px"
          &gt;
  </code></pre>
  
  <p>but the src become "(unknown)"</p>