mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-29 08:27:23 +08:00
install&update boot
This commit is contained in:
@@ -12,7 +12,7 @@ class SettingRepository extends BaseRepository
|
|||||||
{
|
{
|
||||||
public function getList(array $params)
|
public function getList(array $params)
|
||||||
{
|
{
|
||||||
$results = Setting::get();
|
$results = Setting::getFromDb();
|
||||||
$prefix = $params['prefix'] ?? null;
|
$prefix = $params['prefix'] ?? null;
|
||||||
if ($prefix) {
|
if ($prefix) {
|
||||||
return [$prefix => Arr::get($results, $prefix, [])];
|
return [$prefix => Arr::get($results, $prefix, [])];
|
||||||
|
|||||||
@@ -16,3 +16,4 @@ if (file_exists(ROOT_PATH . '.env')) {
|
|||||||
$withLaravel = true;
|
$withLaravel = true;
|
||||||
}
|
}
|
||||||
define('WITH_LARAVEL', $withLaravel);
|
define('WITH_LARAVEL', $withLaravel);
|
||||||
|
\Nexus\Nexus::boot();
|
||||||
|
|||||||
Reference in New Issue
Block a user