Skip to content

Commit 76f1828

Browse files
authored
[Bugfix] Use class_uses_recursive to detect soft-deletable model (#2)
1 parent e4d1eec commit 76f1828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drivers/SoftDeleteBooleanDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SoftDeleteBooleanDriver extends StandardDriver
3636
*/
3737
public function __construct($model)
3838
{
39-
if (!in_array(SoftDeletesBoolean::class, class_uses($model), true)) {
39+
if (!in_array(SoftDeletesBoolean::class, class_uses_recursive($model), true)) {
4040
throw new InvalidArgumentException('Expecting a model that is boolean soft-deletable.');
4141
}
4242

0 commit comments

Comments
 (0)