PHP code example of amol / laravel-route-tracker

1. Go to this page and download the library: Download amol/laravel-route-tracker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

amol / laravel-route-tracker example snippets


Route::middleware(\Amol\LaravelRouteTracker\Middleware\TrackRoute::class)->group(function () {
    // ...your routes...
});

// coming soon
Route::middleware(['track.route'])->group(function () {
    // ...your routes...
});
bash
php artisan vendor:publish --provider="Amol\LaravelRouteTracker\RouteTrackerProvider"
bash
php artisan migrate