<?php

use Illuminate\Database\Seeder;
use App\PaymentMethod;

class PaymentMethodsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
      // I know how to use factories, I just wanted to add it.
      $methods = [
        'Efectivo',
        'Cheque',
        'Transferencia',
        'Tarjeta de Crédito',
        'Monedero electrónico',
        'Dinero electrónico',
        'Tarjetas digitales',
        'Vales de despensa',
        'Tarjeta de débito',
        'Tarjeta de servicio',
        'Otros',
      ];
      foreach ($methods as $method) {
          PaymentMethod::create([
              'name' => $method,
          ]);
      }
    }
}
