Download the PHP package vpominchuk/laravel-theme without Composer
On this page you can find all versions of the php package vpominchuk/laravel-theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vpominchuk/laravel-theme
More information about vpominchuk/laravel-theme
Files in vpominchuk/laravel-theme
Package laravel-theme
Short Description Add theme support for your Laravel application
License MIT
Informations about the package laravel-theme
Laravel Multiple Theme
A package that allows developers to implement multiple theme support to their Laravel applications quickly and easily.
Laravel Theme package allows you to convert your resources/views/
to independent theme.
Laravel Theme allows you to easily add multiple themes to your Laravel application. It provides the ability to create themes. It also offers a theme helper commands to allow for easy switch between themes, list available themes and more...
Laravel Theme is a great way to quickly add theme support to your Laravel application, allowing you to customize the look and feel of your app.
Installation
Converting your views to a theme
As long as your views located in resources/views/
you can convert them to a theme, just run:
and answer some general question.
Available artisan commands
To get list of available artisan commands try:
Command | Description |
---|---|
theme:list |
Show available themes |
theme:info {theme_name} |
Get theme information |
theme:create |
Create a new theme |
theme:activate {theme_name} |
Activate theme |
Switching between themes
You can easily switch between your themes in two different ways:
-
Using artisan command
- Programmatically
Customizing ThemeManager
By default, ThemeManager
class stores information about active theme in
framework/theme.json
file.
In real application you might want to use your own mechanism to store information about active theme.
Follow this documentation to make your own ThemeManager
implementation.
Security
If you discover any security related issues, please use the issue tracker.
Credits
Contributing
Feel free to make any suggestions on the issues or create a pull request. I'll be very happy.
See CONTRIBUTING.md for more information about how to contribute.
License
The MIT License (MIT). Please see License File for more information.