Monday, March 6, 2017

Storage::makeDirectory in public folder

I'm trying to create folder in public/storage but when i call Storage::makeDirectory("public/storage/newdirectory") it creats folder in storage folder with subfolders public/storage/newdirectory. when i try to change it to ../public/storage then i get error message "Path is outside of the defined root". Any idea how can i change it?

From internet found somethin like this: public_path("/storage/newdirectory"); and it doesn't helped.



via MRustamzade

Advertisement