Skip to content

Commit

Permalink
fixed sample-data send mail issue..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed May 28, 2021
1 parent d990fa0 commit 40bd54f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Abstracts/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ public function __construct(...$arguments)
{
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()
Expand Down

0 comments on commit 40bd54f

Please sign in to comment.