<?php

namespace Database\Seeders;

// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use App\Models\Car;
use App\Models\GoBack;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
         \App\Models\User::factory(10)->create();

         \App\Models\User::factory()->create([
             'firstName' => 'Usersio2 sp1-api.test',
             'email' => 'usersio2@seven.fr',
             'authorization' => '1',
             'password'=>Hash::make('12345678')
         ]);

        Car::factory()->count(35)->create();

        GoBack::factory()->count(35)->create();
    }
}
