PHP code example of byrcsc / laravel-whitelabel

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

    

byrcsc / laravel-whitelabel example snippets


'default' => 'default',

'brands' => [
    'default' => [
        'name' => 'Example',
        'logo' => ['disk' => 'public', 'path' => 'brands/default/logo.svg'],
        'favicon' => ['disk' => 'public', 'path' => 'brands/default/favicon.svg'],
        'colors' => ['primary' => '#111827'],
    ],

    'acme' => [
        'name' => 'Acme',
        'domain' => 'acme.test',
        'logo' => ['disk' => 'public', 'path' => 'brands/acme/logo.svg'],
        'colors' => ['primary' => '#7c3aed'],
        'settings' => ['support_url' => 'https://support.acme.test'],
    ],
],
bash
php artisan whitelabel:install --database --no-interaction
php artisan migrate