Skip to content

Commit 9674080

Browse files
Create views/errors/ dir, or copy is going to be error because no dir
1 parent 5fe312c commit 9674080

29 files changed

+18
-3089
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/node_modules
2+
/public/hot
3+
/storage/*.key
24
/vendor
35
/package-lock.json
46
/composer.lock
7+
npm-debug.log
8+
yarn-error.log

app/Console/Commands/AdminLTEMakeCommand.php

+13
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function handle()
6161

6262
$this->info('Start AdminLTE scaffolding');
6363
$this->info('Copying views...');
64+
$this->createDirectories();
6465
foreach ($this->views as $key => $value) {
6566
copy(
6667
__DIR__.'/stubs/make/views/'.$key,
@@ -84,6 +85,18 @@ public function handle()
8485
$this->info('AdminLTE scaffolding generated successfully.');
8586
}
8687

88+
/**
89+
* Create the directories for the files.
90+
*
91+
* @return void
92+
*/
93+
protected function createDirectories()
94+
{
95+
if (! is_dir(resource_path('views/errors'))) {
96+
mkdir(resource_path('views/errors'), 0755, true);
97+
}
98+
}
99+
87100
/**
88101
* Copy a file, or recursively copy a folder and its contents
89102
* @author Aidan Lister <[email protected]>

app/Console/Commands/stubs/make/assets/js/admin-lte.stub

-61
This file was deleted.

app/Console/Commands/stubs/make/assets/js/auth.stub

-10
This file was deleted.

app/Console/Commands/stubs/make/assets/sass/admin-lte.stub

-9
This file was deleted.

app/Console/Commands/stubs/make/assets/sass/auth.stub

-2
This file was deleted.

app/Console/Commands/stubs/make/public/css/admin-lte.css

-22
This file was deleted.

app/Console/Commands/stubs/make/public/css/app.css

-9
This file was deleted.

app/Console/Commands/stubs/make/public/css/auth.css

-1
This file was deleted.

0 commit comments

Comments
 (0)