Skip to content

Commit 97e7e59

Browse files
committed
Merge branch 'fix/delete-unexisting-resource' of https://github.com/Lomkit/laravel-rest-api into fix/delete-unexisting-resource
2 parents e2b21ee + 61774f6 commit 97e7e59

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Http/Requests/DestroyRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function destroyRules(Resource $resource)
4040
'required', 'array',
4141
],
4242
'resources.*' => [
43-
Rule::exists($model->getTable(), $model->getKeyName())
44-
]
43+
Rule::exists($model->getTable(), $model->getKeyName()),
44+
],
4545
];
4646
}
4747
}

tests/Feature/Controllers/DeleteOperationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function test_deleting_a_not_existing_model(): void
6767
[
6868
'resources' => [
6969
999999,
70-
$model->getKey()
70+
$model->getKey(),
7171
],
7272
],
7373
['Accept' => 'application/json']

0 commit comments

Comments
 (0)