Skip to content

Commit

Permalink
added basic info
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Oct 24, 2023
1 parent 80e4d94 commit 560f25c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/Utilities/Info.php
Expand Up @@ -15,13 +15,16 @@ public static function all()
{
static $info = [];

$basic = [
'api_key' => setting('apps.api_key'),
'ip' => static::ip(),
];

if (! empty($info) || request()->isCloudHost()) {
return $info;
return array_merge($info, $basic);
}

$info = array_merge(static::versions(), [
'api_key' => setting('apps.api_key'),
'ip' => static::ip(),
$info = array_merge(static::versions(), $basic, [
'companies' => Company::count(),
'users' => user_model_class()::count(),
'invoices' => Document::allCompanies()->invoice()->count(),
Expand Down

0 comments on commit 560f25c

Please sign in to comment.