| Viewed 21 times

How to get the path to the storage directory in laravel


How to get the path to the storage directory in laravel

1 Answer
Mohammad Qandeel
Answered
0

You can use the storage_path() helper function to get the path to the storage directory in laravel

For Laravel developers, think of the storage directory like a house of your compiled Blade templates

If you want to get the path to the storage directory in laravel you can use the storage_path() helper function which will return a string

Example of how to use storage_path() helper function

$path = storage_path();

Output (output difference based on your project)

 "C:\xampp\htdocs\laravel\shop\storage"

 


Related FAQ