Skip to content

Commit

Permalink
remove cloudauditable
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Jun 11, 2022
1 parent fa66329 commit 2496f8c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 0 additions & 2 deletions config/laratt.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
'exts' => 'xlsx,ods,csv',
],
'audit' => [
'disk' => env('AUDIT_DISK', 's3'),
'bucket' => env('AUDIT_BUCKET'),
'include' => [
'table' => '.*',
'tenant' => '.*',
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<directory suffix=".php">src/</directory>
</include>
<exclude>
<file>src/AuditableEvent.php</file>
<file>src/LarattServiceProvider.php</file>
<file>src/LarattException.php</file>
<file>src/RequestQueryBuilder.php</file>
<file>src/Traits/CloudAuditable.php</file>
<file>src/Traits/AuditableTrait.php</file>
</exclude>
<report>
<html outputDirectory="./coverage" lowUpperBound="35" highLowerBound="70"/>
Expand Down
4 changes: 2 additions & 2 deletions src/Models/ProfileModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use Niiknow\Laratt\Traits\CloudAuditable;
use Niiknow\Laratt\Traits\AuditableTrait;
use Niiknow\Laratt\Traits\TableModelTrait;

class ProfileModel extends Authenticatable
{
use CloudAuditable,
use AuditableTrait,
TableModelTrait;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Models/TableModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use Niiknow\Laratt\Traits\CloudAuditable;
use Niiknow\Laratt\Traits\AuditableTrait;
use Niiknow\Laratt\Traits\SchedulableTrait;
use Niiknow\Laratt\Traits\TableModelTrait;

class TableModel extends Model
{
use CloudAuditable,
use AuditableTrait,
SchedulableTrait,
TableModelTrait;

Expand Down
5 changes: 0 additions & 5 deletions src/Traits/AuditableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ public function canAudit()
return false;
}

$disk = config('laratt.audit.disk');
if (empty($disk)) {
return false;
}

$iten = config('laratt.audit.include.tenant');
$itab = config('laratt.audit.include.table');
if (empty($iten) || empty($itab)) {
Expand Down

0 comments on commit 2496f8c

Please sign in to comment.