caffeinated / themes

:art: Laravel Themes package with support for the Caffeinated Modules package.

Home Page:https://caffeinatedpackages.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Themes folder

karneaud opened this issue · comments

Is there any way to change the themes directory?

It's hardcoded here, if you can fork and change this line, I thinki it'll work:

return base_path("themes/{$theme}/{$file}");

And also fix symlinks:

themes/src/Theme.php

Lines 129 to 140 in c13045b

protected function symlinkPublicDirectory()
{
if (! file_exists(public_path('themes/'.$this->getCurrent()))) {
if (! file_exists(public_path('themes'))) {
app()->make('files')->makeDirectory(public_path('themes'));
}
app()->make('files')->link(
$this->path('public'), public_path('themes/'.$this->getCurrent())
);
}
}

Maybe there are more. I suggest opening a PR for adding this path to the config file.

commented

Yeah, currently its hardcoded. Would be open to a PR to add this in as a customizable option 👍