Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
KeironMcGivern committed Nov 7, 2020
1 parent 9e2e93e commit 46f8ff1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/AuditLogServiceProvider.php
Expand Up @@ -18,7 +18,7 @@ public function boot()
include_once __DIR__ . '/helpers.php';

$this->publishes([
__DIR__ . '/config/audit-queue.php' => config_path('audit-queue.php'),
__DIR__ . '/../config/audit-queue.php' => config_path('audit-queue.php'),
]);
}
}
2 changes: 1 addition & 1 deletion src/LogAuditableEvent.php
Expand Up @@ -34,7 +34,7 @@ public function __construct(
?Model $causer = null,
array $props = []
) {
$this->queue = config('audit-queue.queue');
$this->queue = config('audit-queue.queue', null);
$this->dimension = $dimension;
$this->activity = $activity;
$this->causer = $causer;
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase.php
Expand Up @@ -43,6 +43,7 @@ public function getEnvironmentSetUp($app)
$app['config']->set('app.key', 'base64:' . base64_encode(
Encrypter::generateKey($app['config']['app.cipher'])
));
$app['config']->set('audit-queue.queue', 'auditlog');
}

protected function setUpDatabase()
Expand Down

0 comments on commit 46f8ff1

Please sign in to comment.