AddressSeeder.php 339 B

123456789101112131415161718
  1. <?php
  2. use Illuminate\Database\Seeder;
  3. class AddressSeeder extends Seeder
  4. {
  5. /**
  6. * Run the database seeds.
  7. *
  8. * @return void
  9. */
  10. public function run()
  11. {
  12. $goods = factory(\App\Models\Address::class,100)->make();
  13. dd($goods[20]);
  14. \App\Models\Address::insert( $goods->toArray() );
  15. }
  16. }