Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Themes folder #84

Open
karneaud opened this issue Sep 29, 2019 · 3 comments
Open

Change Themes folder #84

karneaud opened this issue Sep 29, 2019 · 3 comments

Comments

@karneaud
Copy link

Is there any way to change the themes directory?

@tpaksu
Copy link
Contributor

tpaksu commented Oct 23, 2019

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

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

@tpaksu
Copy link
Contributor

tpaksu commented Oct 23, 2019

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.

@kaidesu
Copy link
Contributor

kaidesu commented Feb 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants