smallruraldog / help-center
帮助中心,工单中心
Installs: 802
Dependents: 0
Suggesters: 0
Security: 0
Stars: 24
Watchers: 3
Forks: 12
Open Issues: 6
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
- smallruraldog/light-box: ~1.0
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-11-18 18:38:49 UTC
README
安装 wang-editor
https://github.com/laravel-admin-extensions/wangEditor
安装 light-box
https://github.com/SmallRuralDog/light-box
安装 help-center
composer require smallruraldog/help-center
发布资源
php artisan vendor:publish --provider=SmallRuralDog\HelpCenter\HelpCenterServiceProvider
执行安装/更新命令
php artisan help-center:install
php artisan help-center:update
发布菜单
php artisan admin:import help-center
注意:更新版本时可能需要重新发布资源,具体可看更新文档
使用说明
//获取帮助文档 HelpCenter::getDocs(); //获取用户工单列表 HelpCenter::getWorkOrders($user); //获取用户某工单详情 HelpCenter::getWorkOrderInfo($user,$id); /** * 添加工单 * @param string $content * @param array $images * @param User $user * @param int $p_id */ HelpCenter::addWorkOrder($content, $up_images, $user, $p_id);//添加工单
后端演示
前端案例(需要自己实现)
License
Licensed under The MIT License (MIT).