31 lines
976 B
PHP
31 lines
976 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Factories;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
||
|
/**
|
||
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\EmbroideryEntry>
|
||
|
*/
|
||
|
class EmbroideryEntryFactory extends Factory
|
||
|
{
|
||
|
/**
|
||
|
* Define the model's default state.
|
||
|
*
|
||
|
* @return array<string, mixed>
|
||
|
*/
|
||
|
public function definition(): array
|
||
|
{
|
||
|
return [
|
||
|
'quantity' => $this->faker->numberBetween(1, 10),
|
||
|
'logo' => $this->faker->words(2, true),
|
||
|
'width' => $this->faker->randomFloat(2, 1, 5),
|
||
|
'height' => $this->faker->randomFloat(2, 1, 5),
|
||
|
'placement' => $this->faker->words(2, true),
|
||
|
'stitch_count' => round($this->faker->numberBetween(1000, 10000), -3),
|
||
|
'digitizing_cost' => $this->faker->randomFloat(2, 1, 15),
|
||
|
'run_charge' => $this->faker->randomFloat(2, 1, 15),
|
||
|
];
|
||
|
}
|
||
|
}
|