rtmatt / rtclientdashboard
此包最新版本(1.0.0)没有可用的许可证信息。
用于显示客户端每月服务使用情况的仪表盘。
1.0.0
2016-07-22 17:50 UTC
Requires
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-09-14 19:31:10 UTC
README
- Laravel应用
- jQuery
安装
通过Composer
composer require rtmatt/rtclientdashboard:^0.0.2 //:dev-master
添加服务提供者
在config/app.php的providers数组中
\RTMatt\MonthlyServiceClientDashboard\Providers\MonthlyServiceClientDashboardServiceProvider::class
使用
添加包含
在您想显示仪表盘的任何文件中,包含以下内容
@include('rtclientdashboard::components.dashboard-component')
并在布局文件关闭body标签之前,包含以下内容
@include('rtclientdashboard::partials.dashboard-scripts')
以及以下内容在head部分
@include('rtclientdashboard::partials.dashboard-styles')
###在您网站的.env文件中添加凭证
DASHBOARD_API_NAME=xxx
DASHBOARD_API_KEY=xxx
发布资产
php artisan vendor:publish --provider="RTMatt\MonthlyServiceClientDashboard\Providers\MonthlyServiceClientDashboardServiceProvider" --tag="public" --force
如果您想确保您的公共资产始终是最新的,您可以在composer.json文件中的post-update-cmd列表中添加此命令。
配置
DASHBOARD_API_URL //the base url for the API with which the dashboard talks
DASHBOARD_SUMMARY_API_ENDPOINT //the api endpoint where client service summaries live