Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- // Path to the project's root folder
- echo base_path();
- // Path to the 'app' folder
- echo app_path();
- // Path to the 'public' folder
- echo public_path();
- //Path to the 'app/storage' folder
- echo storage_path();
- ?>
- $path = base_path().'/public';
- return File::put($path , $data)
- $myPublicFolder = public_path();
- $savePath = $mypublicPath."enter_path_to_save";
- $path = $savePath."filename.ext";
- return File::put($path , $data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement