lyrasoft / portfolio
LYRASOFT portfolio package
Installs: 4 985
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 5
Type:windwalker-package
Requires
- lyrasoft/luna: ^1.0||^2.0
- myclabs/php-enum: ^1.8
README
Installation
Install from composer
composer require lyrasoft/portfolio
Then copy files to project
php windwalker pkg:install lyrasoft/portfolio -t routes -t lang -t migrations -t seeders
Seeders
- Add
portfolio-seeder.php
toresources/seeders/main.php
- Add
portfolio
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/portfolio', 'ini');
Register Admin Menu
Edit resources/menu/admin/sidemenu.menu.php
// Category $menu->link('作品分類') ->to($nav->to('category_list', ['type' => 'portfolio'])) ->icon('fal fa-sitemap'); // Portfolio $menu->link('作品管理') ->to($nav->to('portfolio_list')) ->icon('fal fa-images');