File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ class OnlyTrashedCriteria implements CriteriaInterface
21
21
*/
22
22
public function apply (Model |Builder $ model , RepositoryInterface $ repository ): mixed
23
23
{
24
- $ model = $ model instanceof Builder ? $ model ->getModel () : $ model ;
24
+ $ checkModel = $ model instanceof Builder ? $ model ->getModel () : $ model ;
25
25
26
- if (!in_array (SoftDeletes::class, class_uses ($ model )))
26
+ if (!in_array (SoftDeletes::class, class_uses ($ checkModel )))
27
27
throw new RepositoryException ('Model must implement SoftDeletes Trait to use this criteria. ' );
28
28
29
29
return $ model ->onlyTrashed ();
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ class WithTrashedCriteria implements CriteriaInterface
21
21
*/
22
22
public function apply (Model |Builder $ model , RepositoryInterface $ repository ): mixed
23
23
{
24
- $ model = $ model instanceof Builder ? $ model ->getModel () : $ model ;
24
+ $ checkModel = $ model instanceof Builder ? $ model ->getModel () : $ model ;
25
25
26
- if (!in_array (SoftDeletes::class, class_uses ($ model )))
26
+ if (!in_array (SoftDeletes::class, class_uses ($ checkModel )))
27
27
throw new RepositoryException ('Model must implement SoftDeletes Trait to use this criteria. ' );
28
28
29
29
return $ model ->withTrashed ();
You can’t perform that action at this time.
0 commit comments