PHP code example of bwt-team / laravel-request-logger

1. Go to this page and download the library: Download bwt-team/laravel-request-logger 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/ */

    

bwt-team / laravel-request-logger example snippets


BwtTeam\LaravelRequestLogger\Providers\RequestLoggerServiceProvider::class

'RequestLogger' => \BwtTeam\LaravelRequestLogger\Facades\RequestLogger::class,

'enabled' => function(\Illuminate\Http\Request $request) {
    return $request->isMethod('GET');
},

app(\BwtTeam\LaravelRequestLogger\RepositoryInterface::class)->put('test', ['some', 'data']);

\RequestLogger::put('test', ['some', 'data']);
bash
php artisan vendor:publish --provider="BwtTeam\LaravelRequestLogger\Providers\RequestLoggerServiceProvider" --tag=config
bash
php artisan request-logger:table