igaster / laravel-theme

Theme support for Laravel
MIT License
516 stars 110 forks source link

mkdir(): No such file or directory #119

Closed ju5t closed 4 years ago

ju5t commented 4 years ago

In createTheme you're creating theme folders without setting recursive on makeDirectory. In my current setup (MacOs 10.14.6) this fails with:

ErrorException  : mkdir(): No such file or directory

I believe the fix for this to be:

// Create Paths + copy theme.json
$this->files->makeDirectory($viewsPathFull, 0755, true);
$this->files->makeDirectory($assetPathFull, 0755, true);

I am more than happy to raise a PR if this is a bug or needs fixing. Let me know what you think.

igaster commented 4 years ago

Fixed with v2.0.14