Skip to content

Commit

Permalink
Merge pull request #143 from iksaku/override-force-delete-on-relations
Browse files Browse the repository at this point in the history
fix: ability to override force-delete logic in HandleRelationStandardOperations trait
  • Loading branch information
alexzarbn authored Jan 9, 2022
2 parents c41005c + b93d392 commit 096ad33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/HandlesRelationStandardOperations.php
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ protected function destroyWithTransaction(Request $request, $parentKey, $related
$parentEntity = $this->runDestroyParentFetchQuery($request, $parentQuery, $parentKey);

$softDeletes = $this->softDeletes($this->resolveResourceModelClass());
$forceDeletes = $softDeletes && $request->get('force');
$forceDeletes = $this->forceDeletes($request, $softDeletes);

$requestedRelations = $this->relationsResolver->requestedRelations($request);

Expand Down

0 comments on commit 096ad33

Please sign in to comment.