2017 © Pedro Peláez
 

library mks-theme

Theme support for Laravel

image

mikelmi/mks-theme

Theme support for Laravel

  • Monday, February 20, 2017
  • by mikelmi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 35 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Theme Support for Laravel 5

This package supports the management view files and assets under separate folders in Laravel projects., (*1)

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)

The Versions

20/02 2017

dev-master

9999999-dev

Theme support for Laravel

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by mike_lmi

laravel theme layout mks

20/02 2017

v2.1

2.1.0.0

Theme support for Laravel

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by mike_lmi

laravel theme layout mks

27/01 2017

2.0.x-dev

2.0.9999999.9999999-dev

Theme service for Laravel

  Sources   Download

MIT

The Requires

 

by mike_lmi

27/01 2017

v2.0

2.0.0.0

Theme service for Laravel

  Sources   Download

MIT

The Requires

 

by mike_lmi

26/09 2016

v1.0

1.0.0.0

Theme service for Laravel

  Sources   Download

MIT

The Requires

 

by mike_lmi