Closed chocolatkey closed 7 months ago
See also #68
@igaster are you planning to merge this fix?
Actually you can not set the views path inside theme.json
, because theme.json is located inside the views!
Check comment: https://github.com/igaster/laravel-theme/blob/master/src/Themes.php#L210 I hope this makes sense!
The only way to change the views path is through config/themes.php
https://github.com/igaster/laravel-theme/blob/master/src/Themes.php#L194 defeats the purpose of setting "views-path" in a theme.json file. What if I want my views in directory/THEME/views instead of directory/THEME? Thanks to
$data['views-path'] = $themeName;
override, it doesn't matter what is set, so it would be a lot better if that were in the defaults instead.