PHP code example of gpxcat / laravel_access_log

1. Go to this page and download the library: Download gpxcat/laravel_access_log 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/ */

    

gpxcat / laravel_access_log example snippets


php artisan migrate

    protected $routeMiddleware = [
        ...
        'accesslog.handle' => \Gpxcat\LaravelAccessLog\Http\Middleware\AccessLogHandle::class,
        ...
    ];



Route::group([
    'prefix' => 'XXXX',
    'middleware' => [
        'accesslog.handle',
    ],
], function () {
    ...
});