Add Whoops as error handler

This commit is contained in:
Maarten 2019-12-26 01:16:03 +01:00
parent 032d8ff101
commit e516e6cbdf
4 changed files with 152 additions and 7 deletions

View file

@ -16,6 +16,7 @@ class BootstrapFactory {
*/
public function handle()
{
ExceptionHandler::register();
Route::setDefaultNamespace('\App\Http\Controllers');
require_once('../routes/web.php');
@ -65,7 +66,7 @@ class BootstrapFactory {
}
}
ExceptionHandler::make(ClassNotFoundException::class);
ExceptionHandler::make(ClassNotFoundException::class, sprintf("Class '%s' not found", $abstract));
return null;
}