updated info
This commit is contained in:
parent
d0f287563b
commit
6424b29580
@ -4,8 +4,10 @@ namespace App\Utilities;
|
||||
|
||||
use App\Models\Auth\User;
|
||||
use App\Models\Common\Company;
|
||||
use App\Models\Common\Contact;
|
||||
use App\Models\Document\Document;
|
||||
use Composer\InstalledVersions;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class Info
|
||||
{
|
||||
@ -13,8 +15,11 @@ class Info
|
||||
{
|
||||
return array_merge(static::versions(), [
|
||||
'api_key' => setting('apps.api_key'),
|
||||
'ip' => static::ip(),
|
||||
'companies' => Company::count(),
|
||||
'users' => User::count(),
|
||||
'invoices' => Document::invoice()->count(),
|
||||
'customers' => Contact::customer()->count(),
|
||||
'php_extensions' => static::phpExtensions(),
|
||||
]);
|
||||
}
|
||||
@ -23,10 +28,12 @@ class Info
|
||||
{
|
||||
return [
|
||||
'akaunting' => version('short'),
|
||||
'laravel' => app()->version(),
|
||||
'laravel' => InstalledVersions::getPrettyVersion('laravel/framework'),
|
||||
'php' => static::phpVersion(),
|
||||
'mysql' => static::mysqlVersion(),
|
||||
'guzzle' => InstalledVersions::getPrettyVersion('guzzlehttp/guzzle'),
|
||||
'livewire' => InstalledVersions::getPrettyVersion('livewire/livewire'),
|
||||
'omnipay' => InstalledVersions::getPrettyVersion('league/omnipay'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -54,4 +61,11 @@ class Info
|
||||
|
||||
return 'N/A';
|
||||
}
|
||||
|
||||
public static function ip()
|
||||
{
|
||||
return request()->header('CF_CONNECTING_IP')
|
||||
? request()->header('CF_CONNECTING_IP')
|
||||
: request()->ip();
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,7 @@
|
||||
"ext-xml": "*",
|
||||
"ext-zip": "*",
|
||||
"akaunting/laravel-apexcharts": "^2.0",
|
||||
"akaunting/laravel-debugbar-collector": "^2.0",
|
||||
"akaunting/laravel-firewall": "^2.0",
|
||||
"akaunting/laravel-language": "^1.0",
|
||||
"akaunting/laravel-menu": "^2.0",
|
||||
@ -37,7 +38,6 @@
|
||||
"akaunting/laravel-setting": "^1.2",
|
||||
"akaunting/laravel-sortable": "^1.0",
|
||||
"akaunting/laravel-version": "^1.0",
|
||||
"akaunting/laravel-debugbar-collector": "^2.0",
|
||||
"akaunting/module-offline-payments": "^3.0",
|
||||
"akaunting/module-paypal-standard": "^3.0",
|
||||
"barryvdh/laravel-debugbar": "^3.6",
|
||||
|
Loading…
x
Reference in New Issue
Block a user