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