Skip to content

Commit c854695

Browse files
authored
Merge pull request #841 from LearningLocker/issue/840
Fixes #840.
2 parents f5fb66d + 925d374 commit c854695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/locker/repository/Base/EloquentRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function show($id, array $opts) {
6767
*/
6868
public function destroy($id, array $opts) {
6969
$model = $this->show($id, $opts);
70-
return $this->fire($model->delete(), 'destroy', $opts, [
70+
return $this->fire(is_null($model->delete()), 'destroy', $opts, [
7171
'id' => $id
7272
]);
7373
}

0 commit comments

Comments
 (0)