/** * Run the migrations. * * @return void */ public function up() { Schema::create('image_types', function (Blueprint $table) { $table->increments('id'); $table->string('type'); }); $types = [['type' => 'hair'], ['type' => 'makeup'], ['type' => 'beforeandafter']]; foreach ($types as $type) { Image_type::create($type); } }