We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562edeb commit 3a95c1cCopy full SHA for 3a95c1c
src/Paths.php
@@ -14,20 +14,16 @@ trait Paths
14
*/
15
protected function buildPathFromArray($path, Filesystem $filesystem = null)
16
{
17
- $pathArray = explode('/', $path);
+ $pathArray = collect(explode('/', $path))->prepend('resources');
18
19
if (is_null($filesystem)) {
20
$filesystem = new Filesystem();
21
}
22
23
- $base = '/';
+ $base = base_path();
24
25
- $resourceArray = explode('/', resource_path());
26
-
27
- $all = collect($resourceArray)->merge($pathArray);
28
29
- foreach ($all as $dir) {
30
- $base = $base.'/'.$dir;
+ foreach ($pathArray as $path) {
+ $base = $base.'/'.$path;
31
32
if (!$filesystem->exists($base)) {
33
$filesystem->makeDirectory($base);
0 commit comments