php >= 7.4
Laravel version >= 6.0
composer require sagar290/laravel-logable You need add this configuration in config/logging.php file in channels array.
'channels' => [ ..... 'logable' => [ 'driver' => 'daily', 'path' => storage_path('logs/logable.log'), 'level' => 'debug', ], ]Add this middleware to your app/Http/Kernel.php file.
protected $middleware = [ ... \Sagar290\Logable\Middleware\RouteLogMiddleware::class, ];Publish configuration file.
php artisan vendor:publish --provider="Sagar290\Logable\LogableServiceProvider" --tag="config"php artisan logs:monitorThis will live monitor all incoming requests and log them to the log file.
php artisan logs:clearThis will clear all logs.
Please feel free raise an issue if you have problem. Also, feel free to star this repository on Github. Contribute to this project by making a pull request.
