Skip to content

Commit 7282e2c

Browse files
zlatevbgtaylorotwell
authored andcommitted
Use resource_path helper instead of hardcoded path (#18215)
1 parent eebb805 commit 7282e2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Illuminate/Auth/Console/MakeAuthCommand.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ public function fire()
7171
*/
7272
protected function createDirectories()
7373
{
74-
if (! is_dir(base_path('resources/views/layouts'))) {
75-
mkdir(base_path('resources/views/layouts'), 0755, true);
74+
if (! is_dir(resource_path('views/layouts'))) {
75+
mkdir(resource_path('views/layouts'), 0755, true);
7676
}
7777

78-
if (! is_dir(base_path('resources/views/auth/passwords'))) {
79-
mkdir(base_path('resources/views/auth/passwords'), 0755, true);
78+
if (! is_dir(resource_path('views/auth/passwords'))) {
79+
mkdir(resource_path('views/auth/passwords'), 0755, true);
8080
}
8181
}
8282

@@ -90,7 +90,7 @@ protected function exportViews()
9090
foreach ($this->views as $key => $value) {
9191
copy(
9292
__DIR__.'/stubs/make/views/'.$key,
93-
base_path('resources/views/'.$value)
93+
resource_path('views/'.$value)
9494
);
9595
}
9696
}

0 commit comments

Comments
 (0)