Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?
  2. // Path to the project's root folder
  3. echo base_path();
  4.  
  5. // Path to the 'app' folder
  6. echo app_path();
  7.  
  8. // Path to the 'public' folder
  9. echo public_path();
  10.  
  11. //Path to the 'app/storage' folder
  12. echo storage_path();
  13. ?>
  14.  
  15. $path = base_path().'/public';
  16. return File::put($path , $data)
  17.  
  18. $myPublicFolder = public_path();
  19. $savePath = $mypublicPath."enter_path_to_save";
  20. $path = $savePath."filename.ext";
  21. return File::put($path , $data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement