lyrasoft / faq
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
Requires
- php: >=8.4.6
- lyrasoft/luna: ^2.2
README
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.phptoresources/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');
