Download the PHP package awe-ux/moonshine-theme without Composer
On this page you can find all versions of the php package awe-ux/moonshine-theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package moonshine-theme
Theme switcher for MoonShine Laravel admin panel
Requirements
- MoonShine v3.0+
| MoonShine | ChangeLog |
|---|---|
| 2.0+ | 1.0+ |
| 3.0+ | 2.0+ |
Description
This package is designed to be able to change the standard design theme to a minimalistic one.
In the file config.php you have the option to change the name, value and lifetime of the cookie, change the connection of the minimalistic.css file, set your own colors for a minimalistic theme
Installation
Publish provider
After publishing, you will be able to find the config file moonshine-theme.php in the directory config of your project.
Reset cache after publish provider
Usage
Wrap your Layout in ThemeSwitcher::layoutBuilder(Layout $layout): Layout in your MoonShineLayout.
If you use custom Layout, you must adhere to the following structure in method build() and wrap Layout in ThemeSwitcher::layoutBuilder().
For add button-switcher in header, you need to override the getHeaderComponent() method in MoonshineLayout. Use ThemeSwitcher::make(Closure|string $label): ActionButton.
ThemeSwitcher::make() - ActionButton. You can use all ActionButton methods for it.
[!WARNING]
ThemeSwitcher::make()->async()not working, don't use this method.
All versions of moonshine-theme with dependencies
PHP Build Version
Package Version
The package awe-ux/moonshine-theme contains the following files
Loading the files please wait ...