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
|
@@ 66-72 (lines=7) @@
|
| 63 |
|
*/ |
| 64 |
|
protected function generateDirectory($dir, $success, $error) |
| 65 |
|
{ |
| 66 |
|
if (!$this->laravel['files']->isDirectory($dir)) { |
| 67 |
|
$this->laravel['files']->makeDirectory($dir, 0755, true, true); |
| 68 |
|
|
| 69 |
|
$this->info($success); |
| 70 |
|
|
| 71 |
|
return; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
$this->error($error); |
| 75 |
|
} |