/** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create(); for ($i = 0; $i < 30; $i++) { Vehicle::Create(['color' => $faker->safeColorName(), 'power' => $faker->randomNumber(), 'capacity' => $faker->randomFloat(), 'speed' => $faker->randomFloat(), 'maker_id' => $faker->numberBetween(1, 5)]); } }