Skip to content

Commit

Permalink
activity log trait typo are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Raza9798 committed Jun 17, 2024
1 parent 7a83272 commit 9dd8d8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ composer require intelrx/rapidkit

Automatic Package installation and configuration
```
> php artisan rapid:install
php artisan rapid:install
```

Useful command for development
Expand Down
4 changes: 2 additions & 2 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

class Config
{
const VERSION = '1.8.3';
const VERSION = '1.8.4';

}
3 changes: 1 addition & 2 deletions src/stubs/traits/HasActivityLog.stub
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ trait HasActivityLog
$info["description"] = $info["activity_description"];
}

$user_name = Auth::user()->name ?? "GUST";
$user_name = Auth::user()->name ?? "SYSTEM";
$data = $activity->subject[$this->activity_column];

switch ($eventName) {
Expand All @@ -56,7 +56,6 @@ trait HasActivityLog
break;
}
$activity->description = "$user_name has $eventName " . ($info["description"] ?? " $data ") . " on $this->activity_module";
$activity->causer_name = $user_name;
$activity->log_name = $this->activity_module;
}
catch (\Exception $e) {
Expand Down

0 comments on commit 9dd8d8f

Please sign in to comment.