LYRASOFT faq package

Installs: 3 090

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Open Issues: 0

Type:windwalker-package

pkg:composer/lyrasoft/faq

1.2.0 2025-11-06 09:26 UTC

This package is auto-updated.

Last update: 2025-11-06 09:26:37 UTC


README

screenshot 2022-01-13 下午04 01 08

Installation

Install from composer

composer require lyrasoft/faq

Then copy files to project

php windwalker pkg:install lyrasoft/faq -t routes -t migrations -t seeders

Seeders

  • Add faq.seeder.php to resources/seeders/main.seeder.php
  • Package will auto add categories to seeders
  • If you want to modify categories, edit seeders/categories/faq.categories.php

Languages

Add this line to admin & front middleware:

$this->lang->loadAllFromVendor(\Lyrasoft\Faq\FaqPackage::class, 'ini');

If you want to copy language files, Run this command:

php windwalker pkg:install lyrasoft/faq -t lang

Register Admin Menu

Edit resources/menu/admin/sidemenu.menu.php

// Category
$menu->link('常見問題分類')
    ->to($nav->to('category_list', ['type' => 'faq']))
    ->icon('fal fa-sitemap');

// Portfolio
$menu->link('常見問題管理')
    ->to($nav->to('faq_list'))
    ->icon('fal fa-question');