Update the text for server selection

re #509
This commit is contained in:
Henry Whitaker
2021-03-07 12:20:27 +00:00
parent ce4913afa6
commit 2d60f1c81d

View File

@@ -0,0 +1,37 @@
<?php
use App\Setting;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateSpeedtestServerSettingsText extends Migration
{
private Setting $setting;
public function __construct()
{
$this->setting = Setting::where('name', 'server')->first();
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$this->setting->description = '<p class="d-inline">Comma-separated list of speedtest.net server IDs picked randomly. Leave blank to use default settings.</p>;';
$this->setting->save();
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$this->setting->description = '<p class="d-inline">Comma-separated list of speedtest.net servers picked randomly. Leave blank to use default settings.</p>';
$this->setting->save();
}
}