alfred-nutile-inc/route-tracking

此包最新版本(dev-master)无可用许可证信息。

路由跟踪

dev-master 2015-12-17 19:41 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:20:36 UTC


README

report

更多信息请见 https://alfrednutile.info/posts/169

安装

运行 composer require alfred-nutile-inc/route-tracking

配置提供者 config/app.php

    'providers' => [
      AlfredNutileInc\RouteTracking\RouteTrackingProvider::class,

配置中间件,将以下代码添加到你的 app/Http/Kernel.php 中

    protected $middleware = [
        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
        \App\Http\Middleware\EncryptCookies::class,
        \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
        \Illuminate\Session\Middleware\StartSession::class,
        \AlfredNutileInc\RouteTracking\RouteUsageTracker::class,
    ];

确保运行迁移

php artisan vendor:publish

php artisan migrate