Skip to content

Commit

Permalink
fix: add middleware to the allowable public methods on the laravel pr…
Browse files Browse the repository at this point in the history
…eset
  • Loading branch information
CamKem committed Sep 29, 2024
1 parent 0d50d35 commit 8645276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArchPresets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function execute(): void
->toOnlyBeUsedIn('App\Http');

$this->expectations[] = expect('App\Http\Controllers')
->not->toHavePublicMethodsBesides(['__construct', '__invoke', 'index', 'show', 'create', 'store', 'edit', 'update', 'destroy']);
->not->toHavePublicMethodsBesides(['__construct', '__invoke', 'index', 'show', 'create', 'store', 'edit', 'update', 'destroy', 'middleware']);

$this->expectations[] = expect([
'dd',
Expand Down

0 comments on commit 8645276

Please sign in to comment.