PHP code example of jeffersongoncalves / filament-knowledge-base
1. Go to this page and download the library: Download jeffersongoncalves/filament-knowledge-base 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/ */
jeffersongoncalves / filament-knowledge-base example snippets
use JeffersonGoncalves\FilamentKnowledgeBase\KnowledgeBasePlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
KnowledgeBasePlugin::make()
->versioning(true)
->feedback(true)
->relatedArticles(true)
->seo(true)
->navigationGroup('Knowledge Base'),
]);
}
use JeffersonGoncalves\FilamentKnowledgeBase\KnowledgeBaseUserPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
KnowledgeBaseUserPlugin::make()
->feedback(true)
->navigationGroup('Knowledge Base'),
]);
}
use JeffersonGoncalves\FilamentKnowledgeBase\KnowledgeBaseGuestPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
KnowledgeBaseGuestPlugin::make()
->navigationGroup('Knowledge Base'),
]);
}
bash
php artisan vendor:publish --tag="filament-knowledge-base-config"
bash
php artisan vendor:publish --tag="filament-knowledge-base-translations"