diff --git a/app/Abstracts/Factory.php b/app/Abstracts/Factory.php index 0c61d7d41..c01afcf90 100644 --- a/app/Abstracts/Factory.php +++ b/app/Abstracts/Factory.php @@ -26,10 +26,14 @@ abstract class Factory extends BaseFactory { parent::__construct(...$arguments); + config(['mail.default' => 'array']); + $this->user = User::first(); $this->company = $this->user->companies()->first(); company($this->company->id)->makeCurrent(); + + app('url')->defaults(['company_id' => company_id()]); } public function getCompanyUsers()