Search code examples
phplaravelrouteslaravel-5.3laravel-blade

Displaying files from Storage in Laravel 5.3


How to display images uploaded to Storage on view using Blade.

I am trying: On view:

<img class="thumbnails" src="images/qqq3.png" alt="{{ $img->name }}">

In routing:

Route::get('images/{filename}', function($filename){
    dd($filename);   
});

but routing like this is not call


Solution

  • Just make symlink from storage folder to public folder

    run this command from your root project folder

    php artisan storage:link
    

    And you can access the files