承接 mikelmi/mks-theme 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mikelmi/mks-theme

Composer 安装命令:

composer require mikelmi/mks-theme

包简介

Theme support for Laravel

README 文档

README

This package supports the management view files and assets under separate folders in Laravel projects.

Installation

  1. Installation with
    composer require mikelmi/mks-theme:dev-master
  1. Add the service provider in config/app.php, to providers:
    Mikelmi\MksTheme\Providers\MksThemeServiceProvider::class,
  1. Add Facade alias in config/app.php, to aliases:
    'Theme' => Mikelmi\MksTheme\Facades\Theme::class,
  1. Publish config
    php artisan vendor:publish --provider="Mikelmi\MksTheme\Providers\MksThemeServiceProvider"

Create/configure theme

  1. Create new folder in public/themes/, for example public/themes/cool-theme
  2. Set your theme in config/theme.php:
    'name' => 'cool-theme'
    ...
  1. Now you can overwrite any view from resources/views within the folder public/themes/cool-theme/views

Usage

    Theme::set('theme-name');          // switch to 'theme-name'
    Theme::get();                      // retrieve current theme's name
    Theme::all();                      // retrieve collection with all themes
    Theme::asset('assets/path')        // retrieve url to theme asset (e.g.: Theme::asset('assets/css/styles.css')) 
    Theme::info('key'/** or null */);  // retrive theme info (from file /themes/theme-name/theme.php)
    

统计信息

  • 总下载量: 60
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固