Level 5
I added Handler class instead off App\Exception\Handler.php
and problem solved
https://github.com/laravel/laravel/blob/master/app/Exceptions/Handler.php
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to upgrade my project from 5.8v to 8v
I did update composer.json
from this link on github
https://github.com/laravel/laravel/blob/master/composer.json
and when I run composer update
it seem nothing wrong.
After that i tried to serve application but I get this error
PHP Fatal error: Declaration of App\Exceptions\Handler::report(Exception $exception) must be compatible with Illuminate\Foundation\Exceptions\Handler::report(Throwable $e)
I added Handler class instead off App\Exception\Handler.php
and problem solved
https://github.com/laravel/laravel/blob/master/app/Exceptions/Handler.php
Please or to participate in this conversation.