2017 © Pedro Peláez
 

library laravel-themes

The Simple Themes.

image

xtwoend/laravel-themes

The Simple Themes.

  • Saturday, May 28, 2016
  • by xtwoend
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel 5 Themes

This is a package for the Laravel 5 Framework that adds basic support for managing themes. It allows you to seperate your views & your assets files in seperate folders, and supports for theme extending! Awesome :), (*1)

Features:, (*2)

  • Views & Asset seperation in theme folders
  • Theme inheritence: Extend any theme and create Theme hierarcies (WordPress style!)
  • Generate theme via artisan console

Installation

install with, (*3)

    composer require "xtwoend/laravel-themes"

Add the service provider in app/config/app.php, Providers array:, (*4)

    ...
    Xtwoend\Themes\Providers\ThemesServiceProvider::class,

also edit the Facades array and add:, (*5)

    ...
    'Theme' => Xtwoend\Themes\Facades\Themes::class,

Almost Done. You can optionally publish a configuration file to your application with, (*6)

php artisan vendor:publish --provider="Xtwoend\Themes\Providers\ThemesServiceProvider", (*7)

That's it. You are now ready to start theming your applications!, (*8)

Working with Themes, (*9)

The default theme can be configured in the themes.php configuration file. Working with themes is very straightforward. Use:, (*10)

    Theme:set('themename')

or with middleware, (*11)

add middleware theme set in App\Htpp\Kernel.php, (*12)

    protected $routeMiddleware = [
        ...
        'theme' => \Xtwoend\Themes\Middleware\SetCurrentTheme::class,
    ]

set middleware in your route, (*13)

    Route::group(['middleware' => 'theme:themename'], function(){
        // any route
    });

The Versions

28/05 2016

dev-master

9999999-dev

The Simple Themes.

  Sources   Download

MIT

The Requires

 

by Abdul Hafidz A

laravel cms theme