LYRASOFT faq package

Installs: 2 472

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 2

Type:windwalker-package

1.0.7 2024-12-09 02:27 UTC

This package is auto-updated.

Last update: 2024-12-09 02:27:43 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 lang -t migrations -t seeders

Seeders

  • Add faq-seeder.php to resources/seeders/main.php
  • Add faq type to category-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');