From 148c83ead6ee519d3803dd8c0275fb6483f00ab6 Mon Sep 17 00:00:00 2001 From: ol1s <12654315+ol1s@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:57:52 +0000 Subject: [PATCH] allow container bindings for http --- src/ArchPresets/Laravel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ArchPresets/Laravel.php b/src/ArchPresets/Laravel.php index 26e706a9..80cb3139 100644 --- a/src/ArchPresets/Laravel.php +++ b/src/ArchPresets/Laravel.php @@ -149,7 +149,8 @@ public function execute(): void ->toHaveSuffix('Controller'); $this->expectations[] = expect('App\Http') - ->toOnlyBeUsedIn('App\Http'); + ->toOnlyBeUsedIn('App\Http') + ->ignoring('App\Providers'); $this->expectations[] = expect('App\Http\Controllers') ->not->toHavePublicMethodsBesides(['__construct', '__invoke', 'index', 'show', 'create', 'store', 'edit', 'update', 'destroy', 'middleware']);