id(); $table->string('key'); $table->string('value'); $table->timestamps(); }); DB::table('settings')->insert( [[ 'key' => 'lockdown', 'value' => 'no', "created_at" => \Carbon\Carbon::now(), # new \Datetime() "updated_at" => \Carbon\Carbon::now(), # new \Datetime() ], [ 'key' => 'lockdown_msg', 'value' => 'Nothing is here', "created_at" => \Carbon\Carbon::now(), # new \Datetime() "updated_at" => \Carbon\Carbon::now(), # new \Datetime() ], [ 'key' => 'srv_email', 'value' => 'fake@admin.net', "created_at" => \Carbon\Carbon::now(), # new \Datetime() "updated_at" => \Carbon\Carbon::now(), # new \Datetime() ]] ); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('settings'); } }