diff --git a/app/Repositories/Repository.php b/app/Repositories/Repository.php index a42b54f..af4347e 100644 --- a/app/Repositories/Repository.php +++ b/app/Repositories/Repository.php @@ -28,7 +28,7 @@ public function create(array $data) // update record in the database public function update(array $data, $id) { - $record = $this->find($id); + $record = $this->model->find($id); return $record->update($data); } @@ -62,4 +62,4 @@ public function with($relations) { return $this->model->with($relations); } -} \ No newline at end of file +}