PHP code example of mmoollllee / filament-consent-control
1. Go to this page and download the library: Download mmoollllee/filament-consent-control 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/ */
mmoollllee / filament-consent-control example snippets
use Mmoollllee\FilamentConsentControl\ConsentControlPlugin;
public function panel(Panel $panel): Panel
{
return $panel->plugins([
ConsentControlPlugin::make(),
]);
}
use Mmoollllee\FilamentConsentControl\Filament\ConsentSettingsForm;
public function form(Schema $schema): Schema
{
return $schema->components([
ConsentSettingsForm::make('consent_settings'),
// ... your other fields
]);
}
use Filament\Forms\Components\RichEditor;
use Mmoollllee\FilamentConsentControl\Filament\ConsentIframePlugin;
RichEditor::make('body')
->plugins([
ConsentIframePlugin::make(),
]);