ConfigurationSeeder.php 364 B

1234567891011121314151617
  1. <?php
  2. use Illuminate\Database\Seeder;
  3. use App\Configuration;
  4. class ConfigurationSeeder extends Seeder
  5. {
  6. /**
  7. * Run the database seeds.
  8. *
  9. * @return void
  10. */
  11. public function run()
  12. {
  13. $configurations = factory(Configuration::class)->times(100)->make()->toArray();
  14. Configuration::query()->insert($configurations);
  15. }
  16. }