PHP code example of bfg / admin-audit

1. Go to this page and download the library: Download bfg/admin-audit 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/ */

    

bfg / admin-audit example snippets


php artisan migrate

...
   /*
    |--------------------------------------------------------------------------
    | Audit Console
    |--------------------------------------------------------------------------
    |
    | Whether console events should be audited (eg. php artisan db:seed).
    |
    */

    'console' => true,
...

use OwenIt\Auditing\Contracts\Auditable;
...
class User extends Authenticatable implements Auditable
{
    use \OwenIt\Auditing\Auditable;
    
    ...
}

php artisan admin:extension bfg/admin-audit --install

php artisan vendor:publish --provider "OwenIt\Auditing\AuditingServiceProvider" --tag="config"

php artisan vendor:publish --provider "OwenIt\Auditing\AuditingServiceProvider" --tag="migrations"