Skip to content

Commit

Permalink
Add Attributes to Laravel preset
Browse files Browse the repository at this point in the history
  • Loading branch information
bibrokhim committed Dec 6, 2024
1 parent 145294a commit 1ac594b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ArchPresets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,11 @@ public function execute(): void
$this->expectations[] = expect('App\Policies')
->classes()
->toHaveSuffix('Policy');

$this->expectations[] = expect('App\Attributes')
->classes()
->toImplement('Illuminate\Contracts\Container\ContextualAttribute')
->toHaveAttribute('Attribute')
->toHaveMethod('resolve');
}
}

0 comments on commit 1ac594b

Please sign in to comment.