Garry Garry - 1 year ago 108
PHP Question

How do you get the path to the Laravel Storage folder?

I want to store uploaded images to my Laravel-based web app in a subdirectory of the Laravel 'storage' directory. It's the folder at the same hierarchy level as the 'application' and 'public' folders.

Is there a framework method for doing this? I've searched the docs but can't find one.

Answer Source

In Laravel 3, call path('storage').

In Laravel 4, use the storage_path() helper function.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download