PHP code example of vpominchuk / laravel-theme

1. Go to this page and download the library: Download vpominchuk/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/ */

    

vpominchuk / laravel-theme example snippets


use VPominchuk\LaravelThemeSupport\Contracts\ThemeManager;

/** @var ThemeManager $themeManager */
$themeManager = app(ThemeManager::class);
$themeManager->setActiveTheme($systemName); 
shell
$ php artisan theme:create
shell
$ php artisan theme list
shell
$ php artisan theme:activate {theme_name}