Try changes to the handler

This commit is contained in:
James Cole 2016-02-11 14:17:58 +01:00
parent 6e5bca8306
commit bf778d2fca

View File

@ -12,7 +12,7 @@ use Log;
use Mail; use Mail;
use Swift_TransportException; use Swift_TransportException;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
use Auth;
/** /**
* Class Handler * Class Handler
* *
@ -73,7 +73,7 @@ class Handler extends ExceptionHandler
// mail? // mail?
try { try {
$email = env('SITE_OWNER'); $email = env('SITE_OWNER');
$user = $request->user(); $user = Auth::user();
$args = [ $args = [
'errorMessage' => $exception->getMessage(), 'errorMessage' => $exception->getMessage(),
'stacktrace' => $exception->getTraceAsString(), 'stacktrace' => $exception->getTraceAsString(),