Skip to content

lyrasoft/luna-member

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LYRASOFT Member Package

p-001-2021-11-23-03-12-35

Installation

Install from composer

composer require lyrasoft/member

Then copy files to project

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

Seeders

  • Add member-seeder.php to resources/seeders/main.php
  • Add member 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/member', 'ini');

Register Admin Menu

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

// Category
$menu->link('成員分類')
    ->to($nav->to('category_list', ['type' => 'member']))
    ->icon('fal fa-sitemap');

// Portfolio
$menu->link('成員管理')
    ->to($nav->to('member_list'))
    ->icon('fal fa-person');