2022-08-12 22:07:59 +02:00
|
|
|
<?php
|
|
|
|
|
2022-11-07 16:18:11 +01:00
|
|
|
namespace Database\Factories\Letter;
|
2022-08-12 22:07:59 +02:00
|
|
|
|
2022-11-07 16:18:11 +01:00
|
|
|
use App\Letter\BillKind;
|
2022-08-12 22:07:59 +02:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<BillKind>
|
|
|
|
*/
|
|
|
|
class BillKindFactory extends Factory
|
|
|
|
{
|
|
|
|
public $model = BillKind::class;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*
|
|
|
|
* @return array<string, mixed>
|
|
|
|
*/
|
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'name' => $this->faker->words(3, true),
|
|
|
|
];
|
|
|
|
}
|
2022-11-22 00:37:34 +01:00
|
|
|
|
|
|
|
public function name(string $name): self
|
|
|
|
{
|
|
|
|
return $this->state(['name' => $name]);
|
|
|
|
}
|
2022-08-12 22:07:59 +02:00
|
|
|
}
|