PHP code example of yepsua / filament-themes

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

    

yepsua / filament-themes example snippets


[
    ...
    'enable_vite' => true,
    ...
]

[    
    ...
    'color_public_path' => 'vendor/yepsua-filament-themes/css/red.css',
    ...
]

    use Yepsua\Filament\Themes\Facades\FilamentThemes;

    public function boot()
    {
        ...
        FilamentThemes::register(function($path) {
            // Using Vite:
            return app(\Illuminate\Foundation\Vite::class)('resources/' . $path);
            // Using Mix:
            return app(\Illuminate\Foundation\Mix::class)($path);
            // Using asset()
            return asset($path);
        });
        ...
    }
bash
php artisan vendor:publish --tag="yepsua-filament-themes-config"
bash
php artisan vendor:publish --tag="yepsua-filament-themes-assets"