From 40bd54fe1c185f2001bfdea4e16ff9477442b264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Fri, 28 May 2021 11:21:41 +0300 Subject: [PATCH] fixed sample-data send mail issue.. --- app/Abstracts/Factory.php | 4 ++++ 1 file changed, 4 insertions(+) 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()