Skip to content

Commit d33e3a2

Browse files
committed
Use helpers instead of facade
1 parent 0c2aa82 commit d33e3a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/Exceptions/Handler.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
namespace Lio\Exceptions;
33

4-
use Auth;
54
use Bugsnag;
65
use Exception;
76
use Symfony\Component\HttpKernel\Exception\HttpException;
@@ -29,10 +28,10 @@ class Handler extends ExceptionHandler
2928
public function report(Exception $e)
3029
{
3130
// If a user is logged in, we'll set him as the target user for which the errors will occur.
32-
if (Auth::check()) {
31+
if (auth()->check()) {
3332
Bugsnag::setUser([
34-
'name' => Auth::user()->name,
35-
'email' => Auth::user()->email,
33+
'name' => auth()->user()->name,
34+
'email' => auth()->user()->email,
3635
]);
3736
}
3837

0 commit comments

Comments
 (0)