add setting() helper; fix invalid defaults for mysql in table

This commit is contained in:
Nabeel Shahzad
2017-12-09 21:56:26 -06:00
parent 3a22062cd2
commit f2add8908b
7 changed files with 60 additions and 6 deletions

View File

@@ -15,11 +15,11 @@ class CreateSettingsTable extends Migration
Schema::create('settings', function (Blueprint $table) {
$table->increments('id');
$table->integer('order')->default(1);
$table->string('name')->default('');
$table->string('name');
$table->string('key');
$table->string('value');
$table->string('group')->default('general');
$table->text('type')->default('text');
$table->string('group')->nullable();
$table->text('type')->nullable();
$table->text('options')->nullable();
$table->text('description')->nullable();
$table->timestamps();