PHP code example of kfoobar / laravel-theme
1. Go to this page and download the library: Download kfoobar/laravel-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/ */
kfoobar / laravel-theme example snippets
config('theme.logo')
public function index()
{
return theme('index');
}
bash
php artisan vendor:publish --tag theme-config
bash
php artisan theme:install
/resources/views/themes/light/index.blade.php
/resources/views/theme/default/index.blade.php
/resources/views/index.blade.php