easy way to manage themes in laravel 5.1

Theme is a theme management for Laravel 5, it is the easiest way to organize your skins, layouts and assets. Right now Theme supports PHP, Blade, and Twig.

Installation

To get the latest version of Theme simply require it in your composer.json file.

"teepluss/theme": "dev-master"

You’ll then need to run composer install to download it and have the autoloader updated.

Once Theme is installed you need to register the service provider with the application. Open up config/app.php and find the providers key.

'providers' => [

    'Teepluss\Theme\ThemeServiceProvider',

]

Theme also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your config/app.php file.

'aliases' => [

    'Theme' => 'Teepluss\Theme\Facades\Theme',

]

Publish config using artisan CLI.

php artisan vendor:publish --provider="Teepluss\Theme\ThemeServiceProvider"

 

Recommended :  Request routing in laravel 5.1

About the author

Deven Rathore

I'm Deven Rathore, a multidisciplinary & self-taught designer with 3 years of experience. I'm passionate about technology, music, coffee, traveling and everything visually stimulating. Constantly learning and experiencing new things.

Pin It on Pinterest

Shares