database/seeds/RentTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $faker = Faker::create('id_ID');
        foreach(range(1,20) as $i)
        {
            Rent::create([
                'driver_id' => $i,
                'vehicle_id' => $i
            ]);
        }
    }
public function run ( ) { $ faker = Faker :: create ( 'id_ID' ) ; foreach ( range ( 1 , 20 ) as $ i ) { Rent :: create ( [ 'driver_id' => $ i , 'vehicle_id' => $ i ] ) ; } }
Run the database seeds.
Run the database seeds .