PHP code example of alexspi / filament-site-designer
1. Go to this page and download the library: Download alexspi/filament-site-designer 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/ */
alexspi / filament-site-designer example snippets
use Alexspi\FilamentSiteDesigner\FilamentSiteDesignerPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
FilamentSiteDesignerPlugin::make()
->navigationGroup('Design')
);
}
use Alexspi\FilamentSiteDesigner\Support\SiteDesign;
// In layout <head>:
{!! SiteDesign::cssVariablesStyle() !!}
SiteDesign::zone('header');
SiteDesign::enabledBlocks('post_show');
SiteDesign::contentLayoutClass();
SiteDesign::frontTemplateKey(); // needs front.template_map
namespace App\Support;
use Alexspi\FilamentSiteDesigner\Support\SiteDesign as PackageSiteDesign;
class SiteDesign extends PackageSiteDesign
{
// host-only overrides if needed
}