| @@ 176-178 (lines=3) @@ | ||
| 173 | if (! $this->filesystem->exists($path) || $this->confirm($path.' already exists! Continue?')) { |
|
| 174 | $content = str_replace('$NAMESPACE$', $namespace, $stub); |
|
| 175 | ||
| 176 | if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 177 | $this->filesystem->makeDirectory($dir, 0777, true, true); |
|
| 178 | } |
|
| 179 | ||
| 180 | $this->filesystem->put($path, $content); |
|
| 181 | $this->line('---------------'); |
|
| @@ 272-274 (lines=3) @@ | ||
| 269 | if ($this->filesystem->exists($path = $this->getPath()) && ! $this->force) { |
|
| 270 | throw new FileAlreadyExistsException($path); |
|
| 271 | } |
|
| 272 | if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 273 | $this->filesystem->makeDirectory($dir, 0777, true, true); |
|
| 274 | } |
|
| 275 | ||
| 276 | return $this->filesystem->put($path, $this->getStub()); |
|
| 277 | } |
|