Download the PHP package seyamms/laravel-visit without Composer
On this page you can find all versions of the php package seyamms/laravel-visit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download seyamms/laravel-visit
More information about seyamms/laravel-visit
Files in seyamms/laravel-visit
Package laravel-visit
Short Description Laravel package for counting model visits
License MIT
Homepage https://github.com/seyamms/laravel-visit
Informations about the package laravel-visit
Laravel package for counting model visits
This package is intended to count visits of model records with some sort of uniqueness factors (see the config file).
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
After publishing the config you will have visit.php in your config directory the contains these options:
Usage
just add Visitable trait to your model
then you will have access to vzt() on each record that you can use to get the total visits count to that model or increment the counter upon page loading.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Mohammed Seyam
- All Contributors
- Special thanks to Spatie Team
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-visit with dependencies
illuminate/contracts Version ^10.0||^11.0
jenssegers/agent Version ^2.6
spatie/laravel-package-tools Version ^1.16