composer require danx/laravel
sail artisan vendor:publish --provider="Flytedan\DanxLaravel\DanxServiceProvider"
sail artisan config:publish cors
- Configure the
paths
so the desired routes are allowed- NOTE: By default it is open to all requests
To publish packages, simply push a new tagged version to the repository.
make VERSION=1.0.0 publish
- Update
config/logging.php
'channels' => [
//...
'auditlog' => [
'driver' => 'custom',
'via' => Flytedan\DanxLaravel\Logging\Audit\AuditLogLogger::class,
'level' => env('LOG_LEVEL', 'debug'),
],
],
- Update
.env
- recommended to use
stack
as the main channel, so you can add additional logging channels
- recommended to use
LOG_CHANNEL=stack
LOG_STACK={single},{other-log-channels},auditlog