akaunting 3.0 (the last dance)

This commit is contained in:
Burak Civan
2022-06-01 10:15:55 +03:00
parent cead09f6d4
commit d9c0764572
3812 changed files with 126831 additions and 102949 deletions

View File

@ -69,7 +69,7 @@ class IdentifyCompany
{
$company_id = $this->getCompanyIdFromQuery() ?: $this->getCompanyIdFromHeader();
return $company_id ?: optional($this->getFirstCompanyOfUser())->id;
return $company_id ?: $this->getFirstCompanyOfUser()?->id;
}
protected function getCompanyIdFromRoute()
@ -86,4 +86,4 @@ class IdentifyCompany
{
return (int) $this->request->header('X-Company');
}
}
}