Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement