Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubashar Ahmad committed Jul 26, 2023
1 parent 270b466 commit d62678b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Drivers/SlackDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ public function __construct()
public function send($exception)
{
$user = 'Not logged in';
if (auth('admin')->check()) {
if (auth()->check()) {
try {
$columns = auth('admin')->user()->getAttributes();
$columns = auth()->user()->getAttributes();
foreach (['name', 'fullname', 'firstname', 'first_name'] as $col) {
if (array_key_exists($col, $columns)) {
$user = $columns[$col] . ' (' . auth('admin')->user()->id . ')';
$user = $columns[$col] . ' (' . auth()->user()->id . ')';
break;
}
}
} catch (\Exception $e) {
$user = auth('admin')->user()->id;
$user = auth()->user()->id;
}
}

Expand Down

0 comments on commit d62678b

Please sign in to comment.