PostsSeeder.php 427 B

123456789101112131415161718192021
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. use Database\Factories\PostFactory;
  11. use Illuminate\Database\Seeder;
  12. class PostsSeeder extends Seeder
  13. {
  14. public function run()
  15. {
  16. PostFactory::new()->count(1000)->create();
  17. }
  18. }