mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
update .env when run nexus:update
This commit is contained in:
@@ -127,11 +127,9 @@ class NexusUpdate extends Command
|
||||
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$minVersion} or above.", 'error');
|
||||
return 0;
|
||||
}
|
||||
if ($includeComposer) {
|
||||
$this->doLog("going to update .env file ...");
|
||||
$this->update->updateEnvFile();
|
||||
$this->doLog("update .env file done!");
|
||||
}
|
||||
$this->doLog("going to update .env file ...");
|
||||
$this->update->updateEnvFile();
|
||||
$this->doLog("update .env file done!");
|
||||
|
||||
$this->doLog("going to createSymbolicLinks...");
|
||||
$this->update->createSymbolicLinks($symbolicLinks);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Filament\Widgets\AnnounceMonitor\MaxUploadedUser;
|
||||
use App\Models\Setting;
|
||||
use Illuminate\Contracts\Support\Htmlable;
|
||||
|
||||
class AnnounceMonitor extends \Filament\Pages\Dashboard
|
||||
@@ -26,6 +27,14 @@ class AnnounceMonitor extends \Filament\Pages\Dashboard
|
||||
return __('admin.sidebar.announce_monitor');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public static function shouldRegisterNavigation(): bool
|
||||
{
|
||||
return Setting::getIsRecordAnnounceLog() && config('clickhouse.connection.host') != '';
|
||||
}
|
||||
|
||||
public function getWidgets(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user