install&update boot

This commit is contained in:
xiaomlove
2022-04-07 22:35:16 +08:00
parent 8e51771877
commit 196950885b
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ class SettingRepository extends BaseRepository
{
public function getList(array $params)
{
$results = Setting::get();
$results = Setting::getFromDb();
$prefix = $params['prefix'] ?? null;
if ($prefix) {
return [$prefix => Arr::get($results, $prefix, [])];

View File

@@ -16,3 +16,4 @@ if (file_exists(ROOT_PATH . '.env')) {
$withLaravel = true;
}
define('WITH_LARAVEL', $withLaravel);
\Nexus\Nexus::boot();