Download the PHP package amol/laravel-route-tracker without Composer
On this page you can find all versions of the php package amol/laravel-route-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amol/laravel-route-tracker
More information about amol/laravel-route-tracker
Files in amol/laravel-route-tracker
Package laravel-route-tracker
Short Description Laraval route tracker
License MIT
Homepage https://github.com/
Informations about the package laravel-route-tracker
Laravel Route Tracker
A Laravel package to track and log route usage in your application. Useful for analytics, debugging, and monitoring which routes are accessed and how often.
Features
- Stores route, method, user, and timestamp
- Easy integration with Laravel middleware
- Configurable storage (database, log, etc.)
Installation
Install via Composer:
Publish the configuration and migration files:
Run the migrations:
Usage
The package automatically tracks all route hits when the middleware is enabled.
Middleware
Add the middleware to your routes:
Configuration
You can customize the package by editing the config/route-tracker.php
file after publishing the config.
Options include:
- Enable/disable tracking
- Choose storage driver
- Exclude specific routes or methods (Coming soon)
Viewing Tracked Routes
Tracked route data is stored in the route_logs
table by default. You can query this table or build custom dashboards.
Use Cases
It can be used for storing webhooks called by third-party services, like mailgun, stripe etc, by adding middleware in it.
Testing
Run the package tests with:
Contributing
Contributions are welcome! Please submit issues or pull requests.
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-route-tracker with dependencies
spatie/laravel-package-tools Version ^1.92
illuminate/contracts Version ^11.0||^12.19