src/Core/Exceptions/Handler.php
protected function context()
    {
        try {
            return [
                'userId' => Auth::id(),
                'email' => Auth::user() ? Auth::user()->email : null
            ];
        } catch (Throwable $e) {
            return [];
        }
    }
protected function context()
    {
        try {
            return [
                'userId' => Auth::id(),
                'email' => Auth::user() ? Auth::user()->email : null
            ];
        } catch (Throwable $e) {
            return [];
        }
    }
protected function context ( ) { try { return [ 'userId' => Auth :: id ( ) , 'email' => Auth :: user ( ) ? Auth :: user ( ) -> email : null ] ; } catch ( Throwable $ e ) { return [ ] ; } }
Get the default context variables for logging.

@return array
Get the default context variables for logging .