-
-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Run composer require isaeken/laravel-theme-system in your laravel project root.
Then publish service provider and config file using php artisan vendor:publish --provider="IsaEken\ThemeSystem\ThemeSystemServiceProvider" --tag="theme-system-config"
Call the theme_system()->setTheme('your-theme-name') method in your Controller or Middleware for change the theme.
Note:
defaultis reserved. You can use"default"ornullchange to theme for default Laravel views.
You can get current theme name using theme_system()->getCurrentTheme()
Note: theme names are the same as folder names and can only contain "a-z A-Z 0-9 - _" characters by default.
Create your theme's folder as your theme's name. Theme root folder is set to default "/resources/themes".
Copy and edit your default views to your theme directory.