PHP code example of eslym / laravel-easy-theme
1. Go to this page and download the library: Download eslym/laravel-easy-theme library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eslym / laravel-easy-theme example snippets
[
"Eslym\\EasyTheme\\Providers\\ThemeServiceProvider"
]
[
"Theme" => "Eslym\\EasyTheme\\Facades\\Theme"
]
Route::get('/', function(){
return Theme::view('index')
->response();
});
bash
php artisan vendor:publish --provider="Eslym\EasyTheme\Providers\ThemeServiceProvider" --tag="config"
public/
└── themes/
├── default
│ └── index.blade.php
└── theme_b
└── index.blade.php