hexadog / laravel-themes-manager

Bring multi themes support to your Laravel application with a full-featured Themes Manager
https://laravel-themes-manager.netlify.app
MIT License
152 stars 31 forks source link

Question: How can I get value from theme's composer.json file? #39

Closed benfiratkaya closed 2 years ago

benfiratkaya commented 2 years ago

Hello I want to add settings to themes. How can I get values from theme composer.json file?

gaetan-hexadog commented 2 years ago

Hi,

you can use $theme->get('composer_property_name') for example $theme->get('extra.theme.parent') where $theme is an instance of Hexadog\ThemesManager\Theme (you can retreive the current theme using the facace ThemesManager::current())