lyrasoft/member

LYRASOFT member package

Installs: 5 091

Dependents: 0

Suggesters: 1

Security: 0

Stars: 0

Watchers: 3

Forks: 2

Open Issues: 1

Type:windwalker-package

1.2.0 2024-07-22 16:45 UTC

This package is auto-updated.

Last update: 2024-10-22 17:34:42 UTC


README

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