public function hasSoftDeleting()
    {
        if (!$this->hasDeleting()) {
            return false;
        }

        $managedModelClass = $this->getManagedModel();

        return in_array(
            SoftDeletes::class, class_uses_recursive(get_class(new $managedModelClass()))
        ) && $this->hasDeleting();
    }
public function hasSoftDeleting()
    {
        if (!$this->hasDeleting()) {
            return false;
        }

        $managedModelClass = $this->getManagedModel();

        return in_array(
            SoftDeletes::class, class_uses_recursive(get_class(new $managedModelClass()))
        ) && $this->hasDeleting();
    }
public function hasSoftDeleting ( ) { if ( ! $ this -> hasDeleting ( ) ) { return false ; } $ managedModelClass = $ this -> getManagedModel ( ) ; return in_array ( SoftDeletes :: class , class_uses_recursive ( get_class ( new $ managedModelClass ( ) ) ) ) && $ this -> hasDeleting ( ) ; }
Determine if the Managed Model is using the SoftDeletes Trait.

This is guarded by hasDeleting, since we shouldn't allow SoftDeleting
without the deleting trait (even though it isn't really required).

@return bool
Determine if the Managed Model is using the SoftDeletes Trait .