Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Dec 18, 2018
Dec 18, 2018
Dec 18, 2018
src
sql
Dec 18, 2018
Dec 18, 2018
Dec 18, 2018
sql
Dec 18, 2018
Dec 18, 2018

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).