Untitled
Anonymous
php
08/13/2023 1:36 AM
760 B
31
Indexable
<?php
namespace Laramin\Utility;
use App\Models\GeneralSetting;
class Helpmate{
public static function sysPass(){
$fileExists = file_exists(__DIR__.'/laramin.json');
$general = cache()->get('GeneralSetting');
if (!$general) {
$general = GeneralSetting::first();
}
return true;
}
public static function appUrl(){
$current = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$url = substr($current, 0, -9);
return $url;
}
}
Editor is loading...