You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
430 B

  1. <?php
  2. use App\Models\User;
  3. use App\Models\Fingerprint;
  4. use Illuminate\Support\Arr;
  5. use Illuminate\Database\Seeder;
  6. class UserSeeder extends Seeder
  7. {
  8. public function run()
  9. {
  10. User::insert(
  11. factory(User::class, 5000)->raw()
  12. );
  13. Fingerprint::insert(
  14. factory(Fingerprint::class, 5000)->raw()
  15. );
  16. User::where('id', 1)->update(['mobile' => '09123456789']);
  17. }
  18. }