This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel Theme

v2.1.0 2018-09-06 01:51 UTC

This package is auto-updated.

Last update: 2023-12-03 06:56:56 UTC


README

Build Status Latest Stable Version Total Downloads License

Laravel Theme Maker

A simple Laravel Theme Maker, enabled developers to create theme skeleton. Developers just need to add the middleware of themer after creating themes.

Installation

Run the following command to install the package:

composer require cleaniquecoders/themer

Register

Themer Service Provider

Register Themer service provider at config/app.php in providers key:

CleaniqueCoders\Themer\ThemerServiceProvider::class,

Themer Middleware

Register Themer middleware at the app/Http/Kernel.php in $routeMiddleware:

'theme' => \CleaniqueCoders\Themer\Http\Middleware\ThemeLoader::class,

Usage

Create a new theme skeleton

php artisan make:theme your-theme-name

Assign theme via middleware

Route::get('home','HomeController@index')->middleware('theme:public');

OR

Route::group(['middleware' => ['theme:admin']], function(){
	Auth:routes();
});

License

This package is open-sourced software licensed under the MIT license.