From 1ac594bdf0b6a00d2fc50999461daf11990d5fd1 Mon Sep 17 00:00:00 2001 From: Bakhromjon Date: Fri, 6 Dec 2024 16:07:59 +0500 Subject: [PATCH] Add Attributes to Laravel preset --- src/ArchPresets/Laravel.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ArchPresets/Laravel.php b/src/ArchPresets/Laravel.php index 26e706a9..21826786 100644 --- a/src/ArchPresets/Laravel.php +++ b/src/ArchPresets/Laravel.php @@ -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'); } }