<?php

use Illuminate\Support\Str;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class CarsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('cars')->insert([
            'make' => 'bmw-' . Str::random(10),
            'model' => Str::random(10),
            'produced_on' => new DateTime(date('Y-m-d H:i:s'))
        ]);
    }
}
