Skip to content

Commit

Permalink
Merge pull request #2 from GeorgeHanson/patch-1
Browse files Browse the repository at this point in the history
Add missing character
  • Loading branch information
matthewbdaly committed Jun 8, 2018
2 parents d55abfd + be5d425 commit af05180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repositories/Decorators/BaseDecorator.php
Expand Up @@ -217,7 +217,7 @@ public function updateOrCreate(array $input)
public function attach($model, string $relation, Model $value)
{
$this->cache->tags($this->getModel())->flush();
return $this->repository->attach($mode, $relation, $value);
return $this->repository->attach($model, $relation, $value);
}

/**
Expand All @@ -232,6 +232,6 @@ public function attach($model, string $relation, Model $value)
public function detach($model, string $relation, Model $value)
{
$this->cache->tags($this->getModel())->flush();
return $this->repository->detach($mode, $relation, $value);
return $this->repository->detach($model, $relation, $value);
}
}

0 comments on commit af05180

Please sign in to comment.