diff --git a/app/Abstracts/Factory.php b/app/Abstracts/Factory.php index 179226337..eda6e3924 100644 --- a/app/Abstracts/Factory.php +++ b/app/Abstracts/Factory.php @@ -56,9 +56,7 @@ abstract class Factory extends BaseFactory public function setCompany(): void { - $company_id = $this->getRawAttribute('company_id'); - - $this->company = !empty($company_id) ? Company::find($company_id) : $this->user->companies()->first(); + $this->company = $this->user->companies()->first(); $this->company->makeCurrent();