mtcmedia / currently-viewing-page
There is no license information available for the latest version (v1.0.1) of this package.
Widget for watching who else is viewing this page
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-10-27 19:30:01 UTC
README
This package offers a laravel module that tracks users currently viewing a page. UI is based on bootstrap 4. This relies on pinging server from front-end.
Installation
Require via composer
composer require mtcmedia/currently-viewing-page
Publish package (or at least its assets)
php artisan vendor:publish --provider=\\Mtc\\CurrentlyViewing\\Providers\\CurrentlyViewingServiceProvider OR php artisan vendor:publish --provider=\\Mtc\\CurrentlyViewing\\Providers\\CurrentlyViewingServiceProvider --tag=assets
Add Vue component in your app.js file
Vue.component('currently-viewing', require('./currently_viewing').default);
Usage
Drop in component into template
<currently-viewing></currently-viewing>
For linked pages (viewing relationships) you can specify custom url in component
<currently-viewing url="custom_url_here"></currently-viewing>
Contributing
Please see Contributing for details.