LaravelPackages.net
Acme Inc.
Toggle sidebar
pkboom/laravel-route-usage

137
0
About pkboom/laravel-route-usage

pkboom/laravel-route-usage is a Laravel package. It currently has 0 GitHub stars and 137 downloads on Packagist. Install it with composer require pkboom/laravel-route-usage. Discover more Laravel packages by pkboom or browse all Laravel packages to compare alternatives.

Last updated

Simple route usage analyzer for Laravel apps

Latest Stable Version Total Downloads Build Status

This Laravel package shows a route usage.

This is a demo result.

Installation

You can install the package via composer:

composer require pkboom/laravel-route-usage

Run the migration:

php artisan migrate

Usage

You can see a route usage with:

php artisan route-usage:show

You can remove a route usage that are older than 1 month:

php artisan route-usage:remove

You can see referers.

php artisan route-usage:referers

You can see run time.

php artisan route-usage:runtime

You can optionally publish the config file with:

php artisan vendor:publish --provider="Pkboom\RouteUsage\RouteUsageServiceProvider" --tag="config"

This is the contents of the published config file:

<?php

return [
    /*
     * List of uris to be excluded when route-usage:show runs.
     */
    'exclude' => [
        '_debugbar/*', 'horizon/*', 'telescope/*',
    ],
];

Testing

composer test

License

The MIT License (MIT). Please see MIT license for more information.

Star History Chart