Skip to content

Instantly share code, notes, and snippets.

@ayonliu
Created June 27, 2014 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayonliu/066487633013b9d4d0a6 to your computer and use it in GitHub Desktop.
Save ayonliu/066487633013b9d4d0a6 to your computer and use it in GitHub Desktop.
Laravel 4 – Get Path to App, Public, Storage and Base Install Directories
<?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