PHPackages                             pkboom/laravel-route-usage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pkboom/laravel-route-usage

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pkboom/laravel-route-usage
==========================

0137PHPCI failing

Since Jul 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pkboom/laravel-route-usage)[ Packagist](https://packagist.org/packages/pkboom/laravel-route-usage)[ RSS](/packages/pkboom-laravel-route-usage/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple route usage analyzer for Laravel apps
============================================

[](#simple-route-usage-analyzer-for-laravel-apps)

[![Latest Stable Version](https://camo.githubusercontent.com/5d65b191dc92ab04ab0e6cef427f1af880bf0466562df14e21faf6af6a6658e1/68747470733a2f2f706f7365722e707567782e6f72672f706b626f6f6d2f6c61726176656c2d726f7574652d75736167652f762f737461626c65)](https://packagist.org/packages/pkboom/laravel-route-usage)[![Total Downloads](https://camo.githubusercontent.com/a2535a466bf39e18d82ffdec85bdefab623037d89714ac95e574454ba61795d9/68747470733a2f2f706f7365722e707567782e6f72672f706b626f6f6d2f6c61726176656c2d726f7574652d75736167652f646f776e6c6f616473)](https://packagist.org/packages/pkboom/laravel-route-usage)[![Build Status](https://camo.githubusercontent.com/231d8b48d5637ae034f445d5d407bbb863482214270dda7025c72370c22b2d8b/68747470733a2f2f7472617669732d63692e636f6d2f706b626f6f6d2f6c61726176656c2d726f7574652d75736167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/pkboom/laravel-route-usage)

This Laravel package shows a route usage.

This is a demo result. [![](/images/demo.png "demo")](/images/demo.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require pkboom/laravel-route-usage
```

Run the migration:

```
php artisan migrate
```

Usage
-----

[](#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
```

[![](/images/demo2.png "demo2")](/images/demo2.png)

You can see run time.

```
php artisan route-usage:runtime
```

[![](/images/demo3.png "demo3")](/images/demo3.png)

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:

```
