json([ 'error' => 'You need to verify your email address', ], 401); } } catch(Exception $e) { return response()->json([ 'error' => 'Your account was not found' ], 422); } return $next($request); } }