PHP code example of shoplab / shoplab-filament-theme

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

    

shoplab / shoplab-filament-theme example snippets


use Filament\Panel;

public function panel(Panel $panel): Panel
{
    return $panel
        ->viteTheme('vendor/shoplab/shoplab-filament-theme/src/Resources/css/theme.css')
        // ... other configuration
}

use Shoplab\FilamentTheme\FilamentThemePlugin;
use Filament\Panel;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(FilamentThemePlugin::make())
        // ... other configuration
}