Don't understand the Laravel filesystem

Posted 4 months ago by floweringmind

Can someone explain why there is a PUBLIC directory where files are compiled such as CSS and JS. Then there is a STORAGE directory and you have to create a link between public and storage.

Why isn't everything in STORAGE or PUBLIC instead of this weird confusing layout?

I try: use Illuminate\Support\Facades\Storage; as the docs suggest but I can't access the PUBLIC directory.

If I create a link to public I get an error saying there is no support for symbolic link directories.

So if I want to access the files in public it appears that I have to use regular PHP file calls.

I want to do things the correct Lavarel way, but this just doesn't make sense to me.

Please sign in or create an account to participate in this conversation.