skip info for cloud

This commit is contained in:
Denis Duliçi 2023-05-06 16:34:49 +03:00
parent bcf2923468
commit 537c45e8e6

View File

@ -6,6 +6,7 @@ use App\Models\Auth\User;
use App\Models\Common\Company; use App\Models\Common\Company;
use App\Models\Common\Contact; use App\Models\Common\Contact;
use App\Models\Document\Document; use App\Models\Document\Document;
use App\Traits\Cloud;
use Composer\InstalledVersions; use Composer\InstalledVersions;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
@ -15,7 +16,9 @@ class Info
{ {
static $info = []; static $info = [];
if (! empty($info)) { $is_cloud = (new class { use Cloud; })->isCloud();
if (! empty($info) || $is_cloud) {
return $info; return $info;
} }