mtcmedia / currently-viewing-page
此包最新版本(v1.0.1)没有可用的许可证信息。
一个用于观看其他正在浏览此页面的用户的插件
v1.0.1
2019-09-27 08:01 UTC
Requires
- php: ^7.1
- illuminate/support: 5.7.*|5.8.*|6.*
Requires (Dev)
- orchestra/testbench: 3.7.*
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-09-27 19:18:37 UTC
README
此包提供了一个laravel模块,用于跟踪当前正在浏览页面的用户。UI基于bootstrap 4。这依赖于前端向服务器发送ping请求。
安装
通过composer要求
composer require mtcmedia/currently-viewing-page
发布包(或至少其资产)
php artisan vendor:publish --provider=\\Mtc\\CurrentlyViewing\\Providers\\CurrentlyViewingServiceProvider OR php artisan vendor:publish --provider=\\Mtc\\CurrentlyViewing\\Providers\\CurrentlyViewingServiceProvider --tag=assets
在app.js文件中添加Vue组件
Vue.component('currently-viewing', require('./currently_viewing').default);
用法
将组件拖入模板
<currently-viewing></currently-viewing>
对于链接页面(查看关系),您可以在组件中指定自定义URL
<currently-viewing url="custom_url_here"></currently-viewing>
贡献
请参阅 贡献 以获取详细信息。