'How to log Laravel get and post requests

How can I log all post and get requests going in and out of Laravel Luma ?

Our routes look like this :

    $router->group(['prefix' => 'mini'], function () use ($router) {
    $router->get('/', 'Controller@index');
    $router->post('/', 'Controller@index');
    $router->get('/paginate', 'Controller@paginate');
    $router->post('/paginate', 'Controller@paginate');
    $router->get('/debug', 'Controller@debug');
    $router->post('/debug', 'Controller@debug');
    $router->get('/debug_sql', 'Controller@debug_sql');
    $router->post('/debug_sql', 'Controller@debug_sql');
});


Solution 1:[1]

This video can help you for logging all routes: https://youtu.be/Lj8mVOAI4sc

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 oussama zaqouri