I simple just can't get this to work in Laravel 5. and furthermore Laravel doesn't give me any errors to work with. I have build a small CMS system where users are allowed to create a gallery page. When the gallery page is created it should create a folder for the user as well.
$path = public_path('/userfiles/3/Galleri/1');
File::makeDirectory($path, 0777, true);
I'm trying this, and tried different other approaches. I'm working in Laravel 5 and on a shared host, if that has anything to do with it.
Copyright Notice:Content Author:「Mads Grevit」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/38773715/laravel-5-filemakedirectory