ProductFactory.php 546B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Database\Factories;
  3. use Illuminate\Database\Eloquent\Factories\Factory;
  4. /**
  5. * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Product>
  6. */
  7. class ProductFactory extends Factory
  8. {
  9. /**
  10. * Define the model's default state.
  11. *
  12. * @return array<string, mixed>
  13. */
  14. public function definition()
  15. {
  16. return [
  17. 'name' => $this->faker->lexify('Product ????????'),
  18. 'price' => $this->faker->randomNumber(5, true),
  19. 'unit' => 'PC',
  20. ];
  21. }
  22. }