How to check laravel folder exist before creating the directory
Here is the example of How to check if a folder exists before creating Directory in Laravel.
isDirectory() will take one argument as folder path and return true if folder exist or false.
makeDirectory() will take four argument for create folder with permission.
public function submitForm(Request $request) {
$path = public_path('upload/devnote.in');
if(!File::isDirectory($path)){
File::makeDirectory($path, 0777, true, true);
}
dd('done');
}