Код: Выделить всё
- Laravel
- app
- Exceptions
- Handler.php
- src
- module 1
- Http
- Client.php
- Exceptions
- Handler.php
- ExceptionOne.php
- Tests
- TestOne.php
- module 2
< /code>
Насколько я понимаю, потому что обработчик ошибок Laravel является синглтоном, это будет довольно сложно ... невозможно. be: < /p>
class Handler
{
protected $registeredHandlers = [
\App\Exceptions::class,
\Modular\Monolith\Exceptions\Handler::class
];
public function register(): void
{
foreach(this->registeredHandlers as $handler) {
$handler->register();
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... on-handler