onsite / tracker
This is used for user onsite time tracking
v1.0.6
2023-03-07 07:16 UTC
README
This is used for user onsite time tracking
Repo metadata
License
Released under MIT by @oshit-sd.
Installation
You can install the package in to a Laravel project that uses OnsiteTracker via composer:
composer require onsite/tracker
Next, run this command for publish assets
php artisan vendor:publish --tag=tracker-assets <!-- report controller --> php artisan vendor:publish --tag=tracker-report-controller
Migrate Database -
php artisan migrate
Finally, add this scripts on your app layout
@auth
<script>
window.trackObj = { track: true, user_id: "{{ auth()->id() }}" }
</script>
<script src="{{ asset('vendor/onsitetracker/onsitetracker.min.js') }}"></script>
@endauth
or you can use publicly
<script>
window.trackObj = { track: true }
</script>
<script src="{{ asset('vendor/onsitetracker/onsitetracker.min.js') }}"></script>
Report URL
http://localhost:8000/timeTrack