PHP code example of kk-r / laravel-request-analyzer

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

    

kk-r / laravel-request-analyzer example snippets


// in your config/app.php add the provider to the service providers key

'providers' => [
    kkr\laravelRequestAnalyze\Providers\RequestAnalyzeServiceProvider::class,
]

use kkr\laravelRequestAnalyze\Middleware\RequestAnalyze as RequestAnalyzer;

protected $routeMiddleware => [
    .....
    'RequestAnalyzer' => RequestAnalyzer::class,
]

protected $middlewareGroups => [
    .....
    RequestAnalyzer::class,
]

protected $middleware => [
    .....
    RequestAnalyzer::class,
]