---
title: "Discussion on \"Error Handling in laravel 11\" | Hashnode"
description: "Discussion on \"Error Handling in laravel 11\". If you need to completely overwrite the exception handler class, you may use the withSingletons method in your application's bootstrap/app.php to register which class will be handled when Laravel tries to resolve \\Illuminate\\Contracts\\Debug\\Exception..."
url: "https://hashnode.com/posts/error-handling-in-laravel-11/662780f6014f97ce024e3aaf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Error Handling in laravel 11](https://ahmedabdelaal.hashnode.dev/error-handling-in-laravel-11?utm_source=hashnode&utm_medium=feed)

If you need to completely overwrite the exception handler class, you may use the withSingletons method in your application's bootstrap/app.php to register which class will be handled when Laravel tries to resolve \\Illuminate\\Contracts\\Debug\\Exception...

Apr 23, 2024 · 2 min read · ahmedabdelaal.hashnode.dev  
Read the article

-   [#overwite](https://hashnode.com/tag/overwite)
-   [#withsingletons](https://hashnode.com/tag/withsingletons)
-   [#laravel-11](https://hashnode.com/tag/laravel-11)
-   [#exceptionhandling](https://hashnode.com/tag/exceptionhandling)
-   [#customize](https://hashnode.com/tag/customize)

## Written by

[Ahmed Abdelaal](https://hashnode.com/@AhmedabdelAal)

@AhmedabdelAal · Egypt, Ismalia

  
[View profile](https://hashnode.com/@AhmedabdelAal)

Software engineer @onshobbak

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
