Skip to content

Commit a1bb998

Browse files
committed
Destroy
1 parent 7457346 commit a1bb998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/Api/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ public function update($id)
233233
*/
234234
public function destroy($id)
235235
{
236-
return $this->respondNoContent();
237236
try {
238237
$this->repository->deleteById($id);
239238
} catch (ModelNotFoundException $e) {
240239
return $this->errorNotFound('Record does not exist');
241240
}
241+
return $this->respondNoContent();
242242

243243
}
244244

0 commit comments

Comments
 (0)