PHP code example of hsnbd / auditlog

1. Go to this page and download the library: Download hsnbd/auditlog library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hsnbd / auditlog example snippets

 artisan queue:table
 artisan migrate

\Hsnbd\AuditLogger\AuditLog::info('Hello World');

\Hsnbd\AuditLogger\AuditLog::debug('Hello World');
 artisan queue:work database --queue=listeners

class ABCModel extends Model implements \Hsnbd\AuditLogger\Interfaces\ShouldAuditLog {}
sh
php artisan vendor:publish --provider="Hsnbd\AuditLogger\AuditLoggerServiceProvider"
sh
php artisan auditlog:bootstrap
sh
php artisan auditlog:test