mrbohem / screen-tracker
Laravel Livewire package for clone screen with the help of websocket
Fund package maintenance!
mrbohem
Requires
- php: ^8.0
- illuminate/contracts: ^8.37
- livewire/livewire: ^2.6
- spatie/laravel-package-tools: ^1.4.3
- vinkla/hashids: ^9.1
Requires (Dev)
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- pestphp/pest: ^1.18
- pestphp/pest-plugin-laravel: ^1.1
- spatie/laravel-ray: ^1.23
- vimeo/psalm: ^4.8
README
This is a Laravel Livewire package. It allow you to see what users are doing on their screen.
Installation
composer require mrbohem/screen-tracker
Add Blade directives before the end body tag in your template.
<x-screen-tracker::script />
Publish Config File
php artisan vendor:publish --force --tag=screen-tracker-config
Publish Frontend Assets
php artisan vendor:publish --force --tag=screen-tracker-views
To keep the assets up-to-date and avoid issues in future updates, we highly recommend adding the command to the post-autoload-dump scripts in your composer.json file:
{
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"@php artisan vendor:publish --force --tag=livewire:assets --ansi",
"@php artisan vendor:publish --force --tag=screen-tracker-config --ansi",
"@php artisan vendor:publish --force --tag=screen-tracker-views --ansi"
]
}
}
Usage
Call Trait in which component you want to monitor.
use Mrbohem\ScreenTracker\Traits\ScreenTrackerable;
...
use ScreenTrackerable;