Garry Garry - 5 months ago 10
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

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

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

Comments