-
Notifications
You must be signed in to change notification settings - Fork 113
6. Console Comands
Will show a list of your installed themes. Example output:
+--------------------+--------------------+----------------------+----------------------+
| Theme Name | Extends | Views Path | Asset Path |
+--------------------+--------------------+----------------------+----------------------+
| theme1 | | theme1-views | theme1-assets |
| theme2 | theme1 | theme6 | theme6 |
+--------------------+--------------------+----------------------+----------------------+
Will gather some informatin and create a new theme. This is an example:
artisan theme:create
Give theme name:
> dummyTheme
Where will views be located [Default='dummyTheme']?:
> dummyTheme
Where will assets be located [Default='dummyTheme']?:
> dummyTheme
Extends an other theme? (yes/no) [no]:
> y
Which one:
[0 ] Main Theme
[1 ] Some other Theme
> 0
Summary:
- Theme name: dummyTheme
- Views Path: laravel-app/resources/themes/dummyTheme
- Asset Path: laravel-app/public/dummyTheme
- Extends Theme: Main Theme
Create Theme? (yes/no) [yes]:
Will delete theme view & asset folders.
A distirbutable theme package will be created.
Theme packages are archives that contain both the Views & Assets folder of a Theme. You may distribute a theme as a package and install it to any laravel application. Theme packages will be stored into storage/themes
path.
Will install a theme from a theme package. Views & Assets folders will be created for the theme. Theme information will be extracted from the themes.json
file inside the archive.
artisan theme:install
Select a theme to install::
[0] theme-admin
[1] theme-client
> 0
Theme views installed to path [laravel-app/resources/themes/admin]
Theme assets installed to path [laravel-app/public/admin]
Rebuilds the theme cache. Theme cache stores all themes settings in a single file to reduce filesystem quering. Theme caching can be disabled at config\themes.php