topnotch_website/database/factories/ScreenPrintEntryFactory.php

38 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2025-02-01 09:57:57 -08:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ScreenPrintEntry>
*/
class ScreenPrintEntryFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'quantity' => random_int(1, 10),
'logo' => $this->faker->words(2, true),
2025-02-12 13:32:39 -05:00
'placement' => $this->faker->words(2, true),
2025-02-01 09:57:57 -08:00
'width' => $this->faker->randomFloat(2, 1, 5),
'height' => $this->faker->randomFloat(2, 1, 5),
'color_amount' => random_int(1, 5),
'setup_amount' => random_int(1, 5),
2025-02-12 13:32:39 -05:00
'artwork_fee' => $this->faker->randomFloat(2, 1, 10),
'color_change' => $this->faker->randomFLoat(2, 1, 10),
'color_match' => $this->faker->randomFLoat(2, 1, 10),
'flash' => $this->faker->randomFloat(2, 0, 2),
'fleece' => $this->faker->randomFloat(2, 0, 2),
'poly_ink' => $this->faker->randomFloat(2, 0, 2),
'run_charge' => $this->faker->randomFloat(2, 0, 2),
'repacking_fee' => $this->faker->randomFloat(2, 0, 2),
2025-02-01 09:57:57 -08:00
];
}
}