'Notice', 'type' => 'placeholder', 'label' => new HtmlString( 'Use this extension to create articles to help your customers without needing to chat with them. Make and manage your articles at KnowledgeBase.

Do you need support? Join our discord server at https://discord.gg/V3nJ3jVURN' ), ], ]; } catch (\Exception $e) { return [ [ 'name' => 'Notice', 'type' => 'placeholder', 'label' => new HtmlString( 'Use this extension to create articles to help your customers without needing to chat with them. You need to enable it before you can use it.

Do you need support? Join our discord server at https://discord.gg/V3nJ3jVURN' ), ], ]; } } public function enabled() { Artisan::call('migrate', [ '--path' => 'extensions/Others/KnowledgeBase/database/migrations', '--force' => true, ]); } public function boot() { require __DIR__ . '/routes/web.php'; View::addNamespace('knowledgebase', __DIR__ . '/resources/views'); // Livewire componenten \Livewire\Livewire::component('knowledgebase.index', \Paymenter\Extensions\Others\KnowledgeBase\Livewire\Index::class); \Livewire\Livewire::component('knowledgebase.show', \Paymenter\Extensions\Others\KnowledgeBase\Livewire\Show::class); \Livewire\Livewire::component('knowledgebase.category', \Paymenter\Extensions\Others\KnowledgeBase\Livewire\Category::class); \Livewire\Livewire::component('knowledgebase.widget', \Paymenter\Extensions\Others\KnowledgeBase\Livewire\Widget::class); // adminpagina Os Event::listen('navigation', function () { if (Article::where('is_active', true)->count() === 0) { return; } return [ 'name' => 'Documentation', 'route' => 'knowledgebase.index', 'icon' => 'ri-book-open', 'separator' => true, 'children' => [], ]; }); // Homepage Event::listen('pages.home', function () { return [ 'view' => view('knowledgebase::index', [ 'articles' => Article::where('is_active', true) ->orderBy('published_at', 'desc') ->get(), 'categories' => Category::all(), ]), ]; }); // klanten Dashboard Event::listen('pages.dashboard', function () { return [ 'view' => view('knowledgebase::widget', [ 'articles' => Article::where('is_active', true) ->orderBy('published_at', 'desc') ->take(3) ->get(), ]), ]; }); } }