diff --git a/app/Providers/App.php b/app/Providers/App.php index 81c196d9f..58d9b881d 100644 --- a/app/Providers/App.php +++ b/app/Providers/App.php @@ -2,6 +2,8 @@ namespace App\Providers; +use App\Exceptions\Handler; +use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Database\Eloquent\Model; use Illuminate\Pagination\Paginator; use Illuminate\Support\Facades\Schema; @@ -25,6 +27,8 @@ class App extends Provider $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); } + $this->app->singleton(ExceptionHandler::class, Handler::class); + Sanctum::ignoreMigrations(); } diff --git a/phpunit.xml b/phpunit.xml index 226cf970d..3dfb18cb8 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -13,11 +13,11 @@ ./modules/**/Tests/Feature - + ./app - +