How to download a pdf file from storage laravel
<p>I just saw a few tutorials about Laravel storage, but I can't understand how can I create a link for the user to download the actual file that was uploaded.</p>

<p>I managed to upload a pdf file to:</p>

<p>storage/app/public/ccf/b443e9db8dc05f503ede6e670c34bf92.pdf.</p>

<p>I ran the artisan command: php artisan storage:link</p>

<p>But I can't understand what url I should put in the link for the user to download the file.</p>

<p>I tried:</p>

<pre><code>&lt;?php
        $path1 = asset('storage/public/ccf/b443e9db8dc05f503ede6e670c34bf92.pdf');
        $path2 = storage_path('ccf/b443e9db8dc05f503ede6e670c34bf92.pdf');
        $path3 = Storage::url('b443e9db8dc05f503ede6e670c34bf92.pdf');
    ?&gt;

    &lt;a href="{{ $path1 }}" target="_blank"&gt;Path1&lt;/a&gt;
    &lt;a href="{{ $path2 }}" target="_blank"&gt;Path2&lt;/a&gt;
    &lt;a href="{{ $path3 }}" target="_blank"&gt;Path3&lt;/a&gt;
</code></pre>

<p>None work.</p>