We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c1a624 commit 40d3f76Copy full SHA for 40d3f76
src/Concerns/ManageEloquent.php
@@ -127,10 +127,10 @@ public function getRelationType($relationName): string
127
* @param array|string|null $columns Optionally limit the check to a set of columns.
128
* @return bool
129
*/
130
- public function isSoftDeletable(): bool
+ public static function isSoftDeletable(): bool
131
{
132
// Model must have the trait
133
- return in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses_recursive($this));
+ return in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses_recursive(static::class));
134
}
135
136
/**
0 commit comments