skip info for cloud
This commit is contained in:
parent
bcf2923468
commit
537c45e8e6
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user