area17 / twill

Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
https://twillcms.com
Apache License 2.0
3.75k stars 572 forks source link

Rethink the way the error handler works #2612

Open Tofandel opened 3 months ago

Tofandel commented 3 months ago

Fixes #2607

We can use the user provided handler and simply add render cases via methods, so we don't need to provide our own exception handler, which will alleviate the need for more configuration/setup when installing twill

I also optimized the provider to have all the config in one place and not have it run if the config is already cached

ifox commented 3 months ago

This is great @Tofandel thank you. The custom exception handler has definitely been a source of issues and this approach is so much better.