Replies: 1 comment
-
You can use it inside controller or other like
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
everything is fine but as for me - README not full.
where i should do that?:
// Set active theme
Theme::set('theme-name');
// Get current active theme
Theme::active();
// Get current parent theme
Theme::parent();
// Clear theme. So, no theme will be active
Theme::clear();
// Get theme path
Theme::path($path = 'views');
// output:
// /app-root-path/themes/active-theme/views
Theme::path($path = 'views', $themeName = 'admin');
// output:
// /app-root-path/themes/admin/views
Theme::getViewPaths();
// Output:
// [
// '/app-root-path/themes/admin/views',
// '/app-root-path/resources/views'
// ]
I thought that read me should include instructions step by step, but after https://github.com/qirolab/laravel-themer#creating-a-theme
I don't now what should I do after that?
Beta Was this translation helpful? Give feedback.
All reactions