increments('id'); $table->string('name'); $table->string('symbol',2)->nullable(); $table->string('threecode',3); $table->boolean('active'); }); if ($this->convert) foreach (($this->convert)::all() as $o) { $oo = new Currency; $oo->name = $o->name; $oo->symbol = $o->symbol; $oo->threecode = $o->three_digit; $oo->active = $o->three_code == 'AUS' ? TRUE : FALSE; $oo->save(); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('currencies'); } }