Press "Enter" to skip to content

How to create symbolic links in laravel

You may or may not be aware that there is  artisan command to create the symbolic link from storage folder to public folder.

What it does is, it allows us to access the files. By default, laravel wants you to store your files in the storage directory keeping public directory clean only for your public files.

This command helps us to generate symbolic link.

But if you ever reach the scenario where this command is not enough, here is a little bit of snippet for you.

Run this code in laravel application or simply use

You should see the result.

Everything is awesome.

Be First to Comment

    Leave a Reply

    Your email address will not be published.