title: Show image from private storage to rest api client in laravel
body: <p>I'm working on a laravel project and i have saved some pictures on a private storage folder . </p>
  
  <p>This is config/filesystems.php : </p>
  
  <pre><code>'frontend' =&gt; [
              'driver' =&gt; 'local',
              'root' =&gt; storage_path('app/frontend'),
              'url' =&gt; env('APP_URL') . '/storage/frontend',
  ],
  </code></pre>
  
  <p>I want to show images to client using rest api ( my client is a flutter application ) . </p>
  
  <p>I have tried using some methods of File Storage in Laravel but it wont help . </p>
  
  <p>This is a method that i have tried but when i use it's url it says to me Not Found: </p>
  
  <pre><code>Route::get('/show-pic', function () {
      $pic = Picture::find(1);
      $link = Storage::disk('frontend')-&gt;url($pic-&gt;avatar);
      return response()-&gt;json($link , 200);
  });
  </code></pre>
  
  <p>Also i dont want to get the content of pictures then return response containing content of picture , </p>
  
  <p>i just need url of picture .</p>
  
  <p>Any suggestion will be helpful . </p>
  
  <p>Thank you .</p>