<?php

namespace Database\Seeders;

use App\SmHrPayrollEarnDeduc;
use Illuminate\Database\Seeder;
use Faker\Factory as Faker;

class sm_hr_payroll_earn_deducsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
//        $faker = Faker::create();
//
//        for($i=1; $i<=3; $i++) {
//            $store = new SmHrPayrollEarnDeduc();
//            $store->payroll_generate_id = $i;
//            $store->type_name =  $faker->numberBetween(1, 5);
//            $store->amount = rand(3000,5000);
//
//            if($i%2==0)
//            {
//                $store->earn_dedc_type = "e";
//            }
//            else{
//                $store->earn_dedc_type="d";
//            }
//            $store->save();
//        }
    }
}
