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.

41 lines
791 B

2 years ago
2 years ago
  1. <?php
  2. namespace Database\Factories;
  3. use Illuminate\Database\Eloquent\Factories\Factory;
  4. use Illuminate\Support\Str;
  5. /**
  6. * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
  7. */
  8. class UserFactory extends Factory
  9. {
  10. use BaseFactory;
  11. /**
  12. * Define the model's default state.
  13. *
  14. * @return array<string, mixed>
  15. */
  16. public function definition()
  17. {
  18. return [
  19. 'name' => fake()->name(),
  20. 'email' => fake()->safeEmail(),
  21. 'status' => rand(0, 1)
  22. ];
  23. }
  24. public static function list()
  25. {
  26. return [];
  27. }
  28. public function testGeneratorConfig()
  29. {
  30. return [];
  31. }
  32. public function dependencyProvider($dependencyAttributes= [])
  33. {
  34. return [];
  35. }
  36. }