fixed tests

This commit is contained in:
Denis Duliçi
2021-04-18 01:39:36 +03:00
parent 231f45c262
commit 3f49792763
8 changed files with 386 additions and 20 deletions

View File

@ -441,9 +441,9 @@ class Company extends Eloquent
return $this->getMedia('company_logo')->last();
}
public function makeCurrent()
public function makeCurrent($force = false)
{
if ($this->isCurrent()) {
if (!$force && $this->isCurrent()) {
return $this;
}