src/Commands/GeneratorCommand.php 1 location
|
@@ 39-41 (lines=3) @@
|
36 |
|
{ |
37 |
|
$path = str_replace('\\', '/', $this->getDestinationFilePath()); |
38 |
|
|
39 |
|
if (!$this->laravel['files']->isDirectory($dir = dirname($path))) { |
40 |
|
$this->laravel['files']->makeDirectory($dir, 0777, true); |
41 |
|
} |
42 |
|
|
43 |
|
$contents = $this->getTemplateContents(); |
44 |
|
|
src/Commands/SetupCommand.php 1 location
|
@@ 67-73 (lines=7) @@
|
64 |
|
*/ |
65 |
|
protected function generateDirectory($dir, $success, $error) : int |
66 |
|
{ |
67 |
|
if (!$this->laravel['files']->isDirectory($dir)) { |
68 |
|
$this->laravel['files']->makeDirectory($dir, 0755, true, true); |
69 |
|
|
70 |
|
$this->info($success); |
71 |
|
|
72 |
|
return 0; |
73 |
|
} |
74 |
|
|
75 |
|
$this->error($error); |
76 |
|
|