Skip to content

flytedan/danx-laravel

Repository files navigation

Danx Laravel Package

Installation

composer require danx/laravel

Setup

Publish the configuration file

sail artisan vendor:publish --provider="Flytedan\DanxLaravel\DanxServiceProvider"

Development

Install Danx UI

Setup Danx UI

Configure CORS

sail artisan config:publish cors
  • Configure the paths so the desired routes are allowed
    • NOTE: By default it is open to all requests

Publish package to composer

To publish packages, simply push a new tagged version to the repository.

make VERSION=1.0.0 publish

Setup

Audit Logging

  • 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
LOG_CHANNEL=stack
LOG_STACK={single},{other-log-channels},auditlog

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published