lyrasoft / faq
LYRASOFT faq package
Installs: 2 214
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 2
Type:windwalker-package
Requires
- lyrasoft/luna: ^1.0||^2.0
- myclabs/php-enum: ^1.8
This package is auto-updated.
Last update: 2024-10-12 11:04:27 UTC
README
Installation
Install from composer
composer require lyrasoft/faq
Then copy files to project
php windwalker pkg:install lyrasoft/faq -t routes -t lang -t migrations -t seeders
Seeders
- Add
faq-seeder.php
toresources/seeders/main.php
- Add
faq
type tocategory-seeder.php
Languages
If you don't want to copy language files, remove -t lang
from install command.
Then add this line to admin & front middleware:
$this->lang->loadAllFromVendor('lyrasoft/faq', 'ini');
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');