Add a setting for the admin email and set an initial value after the install

This commit is contained in:
Nabeel Shahzad
2017-12-30 20:27:12 -06:00
parent 7180bfb111
commit 2323330444
2 changed files with 20 additions and 4 deletions

View File

@@ -22,8 +22,10 @@ class CreateSettingsTable extends Migration
$table->string('type')->nullable();
$table->string('options')->nullable();
$table->string('description')->nullable();
$table->timestamps();
$table->unique('key');
$table->index('key');
});
/**
@@ -41,6 +43,15 @@ class CreateSettingsTable extends Migration
],
[
'order' => 2,
'name' => 'Admin Email',
'group' => 'general',
'key' => 'general.admin_email',
'value' => '',
'type' => 'text',
'description' => 'Email where notices, etc are sent',
],
[
'order' => 3,
'name' => 'Currency to Use',
'group' => 'general',
'key' => 'general.currency',