Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • thanks sir it worked for me . Can you please explain why should i put it in the storage directory instead of the public folder? Commented Nov 17, 2019 at 14:45
  • 1
    @Vince Glad to know that it worked. By default, Laravel's public directory is the entry point. And Laravel's filesystem symlinks the publicly uploaded files to public directory when you run php artisan storage:link. You should read their docs thoroughly understand all this. Here is the link to the docs: laravel.com/docs/5.7/filesystem#file-urls Commented Nov 17, 2019 at 14:51