PHP code example of wuwx / laravel-admin-auditing

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

    

wuwx / laravel-admin-auditing example snippets




namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use OwenIt\Auditing\Contracts\Auditable;

class Type extends Model implements Auditable
{
    use \OwenIt\Auditing\Auditable;

    //
}
bash
php artisan migrate
php artisan admin:import auditing