Company created event changes..
This commit is contained in:
@ -29,12 +29,12 @@ class CreateCompany extends Job implements HasOwner, HasSource, ShouldCreate
|
||||
$this->updateSettings();
|
||||
});
|
||||
|
||||
event(new CompanyCreated($this->model));
|
||||
|
||||
if (!empty($current_company_id)) {
|
||||
if (! empty($current_company_id)) {
|
||||
company($current_company_id)->makeCurrent();
|
||||
}
|
||||
|
||||
event(new CompanyCreated($this->model, $this->request));
|
||||
|
||||
return $this->model;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user