src/Commands/PbagCommand.php
protected function makeDir($dir)
    {
        $dirPath = base_path('app/'.ltrim($dir, '/'));

        if (!File::exists($dirPath)) {
            File::makeDirectory($dirPath);
        }
    }
protected function makeDir($dir)
    {
        $dirPath = base_path('app/'.ltrim($dir, '/'));

        if (!File::exists($dirPath)) {
            File::makeDirectory($dirPath);
        }
    }
protected function makeDir ( $ dir ) { $ dirPath = base_path ( 'app/' . ltrim ( $ dir , '/' ) ) ; if ( ! File :: exists ( $ dirPath ) ) { File :: makeDirectory ( $ dirPath ) ; } }
Make directory if it doesn't already exist.

@param string $dir
Make directory if it doesn t already exist .