### Install Laravel Auditing with Composer Source: https://github.com/owen-it/laravel-auditing/wiki/Getting-Started Installs the latest version of the Laravel Auditing package using Composer. This is the first step to integrate auditing into your Laravel or Lumen project. ```Bash composer require owen-it/laravel-auditing ``` -------------------------------- ### Publish Laravel Auditing Configuration Source: https://github.com/owen-it/laravel-auditing/wiki/Getting-Started Publishes the configuration files for Laravel Auditing after the service provider has been registered. This allows customization of auditing behavior. ```Bash php artisan vendor:publish --provider="OwenIt\Auditing\AuditingServiceProvider" ``` -------------------------------- ### Run Laravel Auditing Migrations Source: https://github.com/owen-it/laravel-auditing/wiki/Getting-Started Executes the database migrations to create the necessary 'logs' table. This table stores the audit trail data generated by the package. ```Bash php artisan migrate ``` -------------------------------- ### Register Lumen Auditing Service Provider Source: https://github.com/owen-it/laravel-auditing/wiki/Getting-Started Registers the AuditingServiceProvider in Lumen's bootstrap/app.php file. This enables the auditing functionality within a Lumen application. ```PHP $app->register(OwenIt\Auditing\AuditingServiceProvider::class); ``` -------------------------------- ### Register Laravel Auditing Service Provider Source: https://github.com/owen-it/laravel-auditing/wiki/Getting-Started Registers the AuditingServiceProvider in Laravel's config/app.php file. This step is crucial for the package to function correctly and publish its configuration. ```PHP 'providers' => [ // ... OwenIt\Auditing\AuditingServiceProvider::class, ] ``` -------------------------------- ### Enable Lumen Facades and Eloquent Source: https://github.com/owen-it/laravel-auditing/wiki/Getting-Started Uncomments the calls to $app->withFacades() and $app->withEloquent() in Lumen's bootstrap/app.php. This is required for the package to work correctly with Lumen's features. ```PHP // ... $app->withFacades(); $app->withEloquent(); // ... ``` -------------------------------- ### Run Lumen Auditing Migrations Source: https://github.com/owen-it/laravel-auditing/wiki/Getting-Started Executes the database migrations to create the 'logs' table for audit trail storage in a Lumen project. This is essential for saving audit logs. ```Bash php artisan migrate ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.