20 lines
600 B
PHP
20 lines
600 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class LineItemFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'position' => $this->faker->numberBetween(1, 10),
|
|
'title' => $this->faker->words(3, true),
|
|
'description' => $this->faker->sentence(),
|
|
'quantity' => $this->faker->numberBetween(1, 10),
|
|
'unit' => $this->faker->randomElement(['Stück', 'Stunden', 'Tage', 'pauschal']),
|
|
'price' => $this->faker->randomFloat(2, 10, 500),
|
|
];
|
|
}
|
|
} |