laravel-admin 帮助中心 工单中心
Clone or download
Latest commit 661b6e7 Dec 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
database/migrations init Dec 18, 2018
resources init Dec 18, 2018
routes init Dec 18, 2018
src sql Dec 18, 2018
.gitignore init Dec 18, 2018
LICENSE init Dec 18, 2018
README.md sql Dec 18, 2018
composer.json init Dec 18, 2018

README.md

laravel-admin 帮助中心

安装 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);//添加工单

后端演示

image image

前端案例(需要自己实现)

image image image image

License

Licensed under The MIT License (MIT).