28 lines
671 B
PHP
28 lines
671 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\PaymentOption;
|
|
use App\Models\PaymentOptionTranslation;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<PaymentOptionTranslation>
|
|
*/
|
|
class PaymentOptionTranslationFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'payment_option_id' => PaymentOption::factory(),
|
|
'locale' => fake()->randomElement(['de', 'en']),
|
|
'name' => fake()->words(3, true),
|
|
'description' => fake()->sentence(),
|
|
];
|
|
}
|
|
}
|