PHP code example of malvik-lab / laravel-http-logger

1. Go to this page and download the library: Download malvik-lab/laravel-http-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/ */

    

malvik-lab / laravel-http-logger example snippets


// app/Http/Kernel.php
protected $middleware = [
    \MalvikLab\LaravelHttpLogger\Http\Middleware\LaravelHttpLoggerMiddleware::class,
    // ...
];

Route::middleware(['malviklab-laravel-http-logger'])->group(function () {
    // your routes here
});


// config/malviklab-laravel-http-logger.php

return [
    'storageAdapter' => MalvikLab\LaravelHttpLogger\Http\Middleware\Adapters\DbAdapter::class,
    'hiddenText' => '[ *** HIDDEN *** ]',
    'keysToHide' => [
        'Authorization',
        'password',
        'token',
    ],
];

$ php artisan migrate