Laravel error Declaration of App\Exceptions\Handler::report(Throwable $exception)

if you are using Laravel < 7

[Laravel Guide]

The report and render methods of your application’s App\Exceptions\Handler class should accept instances of the Exception interface instead of Throwable instances:

Open app\Exceptions\Handler.php file and change Throwable into Exception

like this

use Exception; 
public function report(Exception $exception); 
public function render($request, Exception $exception);
Follow by Email
LinkedIn
Share
Instagram