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

Asset Passthough #6

Open
aaranmcguire opened this issue Jun 14, 2015 · 1 comment
Open

Asset Passthough #6

aaranmcguire opened this issue Jun 14, 2015 · 1 comment

Comments

@aaranmcguire
Copy link

Not sure if the title makes sense, but I was wondering can you think of any way to allow each theme to be self contained and not require publishing of the assets to the public folder?

The reason I'm wanting this is I'm wanting to create a multi-tenant website with the ability for users to have there own theme, at first it's only going to be themes I generate but in the future I hope to open that up to uploadable themes. The issue I foresee is I'm going to have theme files in two locations and it's going to become difficult to manage.

The only ways I can think of doing it are:

  • Putting the themes directory in the public area (making blade files publicly accessible - sorta)
  • Creating a route that reads and outputs the folders content (would reduce load time as php/hhvm would have to read and dump the file vs nginx directly).

Can you think of anything, even if it is the 2nd option.. Can it be added into this package or does it have to be done manually?

Thanks

@tankerkiller125
Copy link
Contributor

If you have a dashboard you can have Artian run commands using the Artisan class. I have personally used this to publish the files. Also having the blade files in a publicly readable directory could become a security concern.

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

2 participants