laravel-theme icon indicating copy to clipboard operation
laravel-theme copied to clipboard

Move themes/ folder

Open devloe opened this issue 9 years ago • 6 comments

Is is possible to move themes/ folder outside public/? Is it possible to move it to resources/?

devloe avatar Jun 15 '15 11:06 devloe

I would also like to know how to do this. anyone?

kayrules avatar Aug 25 '15 03:08 kayrules

I agree, it would should be configurable but I wounder how it would affect asset management.

JFossey avatar Dec 17 '15 09:12 JFossey

+1

taiyeoguns avatar Dec 30 '15 10:12 taiyeoguns

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');

gabyrusu avatar Jan 15 '16 10:01 gabyrusu

Hi, I create a pull request for this #122

kurorido avatar Mar 30 '16 14:03 kurorido

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)

ttimot24 avatar Nov 06 '16 19:11 ttimot24