Advertisement
julong

Laravel 4 – Get Path to App, Public, Storage and Base

Jun 20th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Laravel 4 – Get Path to App, Public, Storage and Base Install Directories
  2. /////////////////////////////////////////////////////////////////////////
  3. <?php
  4. /**
  5. * Path to the 'app' folder
  6. */
  7. echo app_path();
  8. /**
  9. * Path to the project's root folder
  10. */
  11. echo base_path();
  12. /**
  13. * Path to the 'public' folder
  14. */
  15. echo public_path();
  16. /**
  17. * Path to the 'app/storage' folder
  18. */
  19. echo storage_path();
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement