PHP code example of petercoles / themes

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

    

petercoles / themes example snippets


php artisan vendor:publish

php artisan vendor:publish --provider="PeterColes\Themes\ThemesServiceProvider"
themes/foo/views/pages/about.blade.php
resources/views/pages/about.blade.php


return [
    [
        'match' => 'subdomain:admin',
        'theme' => 'adminV1'
    ],
    [
        'theme' => 'siteV2'
    ]

];