laravel-theme
laravel-theme copied to clipboard
Move themes/ folder
Is is possible to move themes/ folder outside public/? Is it possible to move it to resources/?
I would also like to know how to do this. anyone?
I agree, it would should be configurable but I wounder how it would affect asset management.
+1
you can move them by changing the "config/theme.php" (before generating any themes) like so: 'themeDir' => '../resources/themes', but this will affect asset manager because it will try to fetch the asset from: "/../resources/themes/default/assets/".
anyone with a solution?
EDIT: to load the assets from the public directory you have to call the assets like this: $theme->asset()->add('style', '/css/style.css'); instead of $theme->asset()->usePath()->add('style', '/css/style.css');
Hi, I create a pull request for this #122
Hi!
Is it possible to render the themes from /themes dir, a level up from public (aka laravel's root dir)? If a change the themeDir I get a file not found exception. (config.php)