protected function isRestoringModel(Eloquent $model): bool
    {
        if (! $model->isSoftDeleting()) {
            return false;
        }

        $deleted = $model->getDeletedAtColumn();

        return \is_null($model->getAttribute($deleted)) && ! \is_null($model->getOriginal($deleted));
    }
protected function isRestoringModel(Eloquent $model): bool
    {
        if (! $model->isSoftDeleting()) {
            return false;
        }

        $deleted = $model->getDeletedAtColumn();

        return \is_null($model->getAttribute($deleted)) && ! \is_null($model->getOriginal($deleted));
    }
protected function isRestoringModel ( Eloquent $ model ) : bool { if ( ! $ model -> isSoftDeleting ( ) ) { return false ; } $ deleted = $ model -> getDeletedAtColumn ( ) ; return \ is_null ( $ model -> getAttribute ( $ deleted ) ) && ! \ is_null ( $ model -> getOriginal ( $ deleted ) ) ; }
Is restoring model.

@param  \Orchestra\Model\Role  $model

@return bool
Is restoring model .