2017 © Pedro Pelรกez
 

library larathemes

Theme Manager for Laravel 5

image

codewithtony/larathemes

Theme Manager for Laravel 5

  • Saturday, April 1, 2017
  • by codefromtony
  • Repository
  • 3 Watchers
  • 7 Stars
  • 2,157 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 14 % Grown

The README.md

Laravel Theme

The simpliest of theme switching for Laravel 5, (*1)

Installation

Laravel 5.1+

Install Laravel Theme manager:, (*2)

``` json composer require codewithtony/larathemes, (*3)


At `config/app.php`, add the Service Provider and the Facade: ```php 'providers' => [ Tony\Themes\ThemeServiceProvider::class, ] //... 'aliases' => [ 'Theme' => Tony\Themes\Themes\ThemeFacade::class, ]

Usage

themes
  โ”œโ”€โ”€ [theme name]
  |   โ””โ”€โ”€ assets
  |   โ””โ”€โ”€ views
  |
  โ””โ”€โ”€ [theme name]
      โ””โ”€โ”€ assets
      โ””โ”€โ”€ views

Setting a theme

Changing your theme is easy, (*4)

Theme::set('my-theme')

Easily use the Middleware to change themes for an entire group, (*5)

Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'theme:admin'], function () {
    //...
});

Calling a view

Load your views like normal, Laravel Theme will look for your view in the set theme and if it isn't found, view finding will remain the same, (*6)

You can reuse views by storing them outside of your theme and just uses view('layout.master') and have your layout/master.blade.php inside you themes., (*7)

Assets

Your assets will need to be sent to your public folder still., (*8)

Contribute

Your help is more than welcome!, (*9)

License

Licensed under the The MIT License (MIT). Please see LICENSE for more information., (*10)

The Versions

01/04 2017

dev-master

9999999-dev https://github.com/codewithtony/larathemes

Theme Manager for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel 5 themes theme manager laravel theme

01/04 2017

1.2

1.2.0.0 https://github.com/codewithtony/larathemes

Theme Manager for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel 5 themes theme manager laravel theme

28/02 2016

1.1

1.1.0.0 https://github.com/codewithtony/larathemes

Theme Manager for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel 5 themes theme manager laravel theme

26/02 2016

1.0

1.0.0.0 https://github.com/codewithtony/larathemes

Theme Manager for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel 5 themes theme manager laravel theme