Skip to content

eslym/laravel-easy-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Easy Theme

Install

composer require eslym/laravel-easy-theme

Without package discovery

Provider

[
    "Eslym\\EasyTheme\\Providers\\ThemeServiceProvider"
]

Alias

[
    "Theme" => "Eslym\\EasyTheme\\Facades\\Theme"
]

Publish

php artisan vendor:publish --provider="Eslym\EasyTheme\Providers\ThemeServiceProvider" --tag="config"

How to use

Structure

public/
└── themes/
     ├── default
     │   └── index.blade.php
     └── theme_b
          └── index.blade.php

Code

Route::get('/', function(){
    return Theme::view('index')
        ->response();
});

About

Easy theme system for laravel 5

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages