A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

UserFactory.php 541B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Database\Factories;
  3. use App\Models\User;
  4. use Illuminate\Database\Eloquent\Factories\Factory;
  5. class UserFactory extends Factory
  6. {
  7. /**
  8. * The name of the factory's corresponding model.
  9. *
  10. * @var string
  11. */
  12. protected $model = User::class;
  13. /**
  14. * Define the model's default state.
  15. *
  16. * @return array
  17. */
  18. public function definition()
  19. {
  20. return [
  21. 'name' => $this->faker->name,
  22. 'email' => $this->faker->unique()->safeEmail,
  23. ];
  24. }
  25. }