Skip to content

Commit 492dd85

Browse files
committed
Merge branch 'develop' of github.com:laravel-json-api/boolean-softdeletes into develop
2 parents 2f23475 + 672033d commit 492dd85

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
],
2525
"require": {
2626
"php": "^7.4|^8.0",
27+
"illuminate/support": "^8.0",
2728
"laravel-json-api/eloquent": "^1.0.0",
2829
"tenantcloud/laravel-boolean-softdeletes": "^3.1"
2930
},

src/Drivers/SoftDeleteBooleanDriver.php

+1-1
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)