tablename = Config::get('settings.table'); $this->keyColumn = Config::get('settings.keyColumn'); $this->valueColumn = Config::get('settings.valueColumn'); } /** * Run the migrations. * * @return void */ public function up() { Schema::create($this->tablename, function (Blueprint $table) { $table->increments('id'); $table->string($this->keyColumn)->index(); $table->text($this->valueColumn); $table->timestamps(); }); #Setting::set('currency', 'dollar'); #Setting::set('currency_descrip', 'Currency to use'); #Setting::save(); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop($this->tablename); } }