PHP code example of visualbuilder / filament-design-system
1. Go to this page and download the library: Download visualbuilder/filament-design-system 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/ */
visualbuilder / filament-design-system example snippets
if (class_exists(\Visualbuilder\FilamentDesignSystem\FilamentDesignSystemPlugin::class)) {
$providers[] = App\Providers\Filament\DesignSystemPanelProvider::class;
}
FilamentDesignSystemPlugin::make()
->screenshotCapture(function (string $url): ?array {
// your capture logic here, e.g. invoking a hosted service
return ['image' => $base64, 'mime' => 'image/png'];
}),