Skip to content

lyrasoft/luna-faq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LYRASOFT Faq Package

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');

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages