I can make a Folder Successfully when a user create his account based on his chosen username but I also want to instruct make sub folders for instance when you create an account with username "john" a folder is created called "john" what about if I want to create sub folders for this user.
So basically when your username is "john" I want to create sub folders like :
john/folder1
john/folder2
john/folder3
here is the main folder code line :
File::MakeDirectory('/home/vagrant/Code/laravel/UserFolders/' . $data['username']);
Copyright Notice:Content Author:「Mark」,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/30770326/file-makedirectory