/** * Do the migration */ public function up() { Capsule::schema()->create('secteurs', function ($table) { $table->increments('id'); $table->string('name'); $table->timestamps(); }); $array = [['name' => 'Agriculture'], ['name' => 'Informatique'], ['name' => 'Commerce'], ['name' => 'Restauration'], ['name' => 'Tourisme']]; Secteurs::insert($array); }