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/ */
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);
});
...
}