Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App/Listeners/LogAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct()
public function handle(Authenticated $event)
{
if (config('LaravelLogger.logAllAuthEvents')) {
ActivityLogger::activity('Authenticated Activity');
ActivityLogger::activity(trans('LaravelLogger::laravel-logger.listenerTypes.auth'));
}
}
}
2 changes: 1 addition & 1 deletion src/App/Listeners/LogAuthenticationAttempt.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct()
public function handle(Attempting $event)
{
if (config('LaravelLogger.logAuthAttempts')) {
ActivityLogger::activity('Authenticated Attempt');
ActivityLogger::activity(trans('LaravelLogger::laravel-logger.listenerTypes.attempt'));
}
}
}
2 changes: 1 addition & 1 deletion src/App/Listeners/LogFailedLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct()
public function handle(Failed $event)
{
if (config('LaravelLogger.logFailedAuthAttempts')) {
ActivityLogger::activity('Failed Login Attempt');
ActivityLogger::activity(trans('LaravelLogger::laravel-logger.listenerTypes.failed'));
}
}
}
2 changes: 1 addition & 1 deletion src/App/Listeners/LogLockout.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct()
public function handle(Lockout $event)
{
if (config('LaravelLogger.logLockOut')) {
ActivityLogger::activity('Locked Out');
ActivityLogger::activity(trans('LaravelLogger::laravel-logger.listenerTypes.lockout'));
}
}
}
2 changes: 1 addition & 1 deletion src/App/Listeners/LogPasswordReset.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct()
public function handle(PasswordReset $event)
{
if (config('LaravelLogger.logPasswordReset')) {
ActivityLogger::activity('Reset Password');
ActivityLogger::activity(trans('LaravelLogger::laravel-logger.listenerTypes.reset'));
}
}
}
2 changes: 1 addition & 1 deletion src/App/Listeners/LogSuccessfulLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct()
public function handle(Login $event)
{
if (config('LaravelLogger.logSuccessfulLogin')) {
ActivityLogger::activity('Logged In');
ActivityLogger::activity(trans('LaravelLogger::laravel-logger.listenerTypes.login'));
}
}
}
2 changes: 1 addition & 1 deletion src/App/Listeners/LogSuccessfulLogout.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct()
public function handle(Logout $event)
{
if (config('LaravelLogger.logSuccessfulLogout')) {
ActivityLogger::activity('Logged Out');
ActivityLogger::activity(trans('LaravelLogger::laravel-logger.listenerTypes.logout'));
}
}
}
10 changes: 10 additions & 0 deletions src/resources/lang/en/laravel-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
'crawled' => 'crawled',
],

'listenerTypes' => [
'auth' => 'Authenticated Activity',
'attempt' => 'Authenticated Attempt',
'failed' => 'Failed Login Attempt',
'lockout' => 'Locked Out',
'reset' => 'Reset Password',
'login' => 'Logged In',
'logout' => 'Logged Out',
],

'tooltips' => [
'viewRecord' => 'View Record Details',
],
Expand Down