Created
June 27, 2014 09:44
-
-
Save ayonliu/066487633013b9d4d0a6 to your computer and use it in GitHub Desktop.
Laravel 4 – Get Path to App, Public, Storage and Base Install Directories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Path to the 'app' folder | |
*/ | |
echo app_path(); | |
/** | |
* Path to the project's root folder | |
*/ | |
echo base_path(); | |
/** | |
* Path to the 'public' folder | |
*/ | |
echo public_path(); | |
/** | |
* Path to the 'app/storage' folder | |
*/ | |
echo storage_path(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment