32 lines
623 B
PHP
32 lines
623 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use App\Models\InvoiceCompany;
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Factory for generating InvoiceCompany model instances with randomized data.
|
||
|
|
*/
|
||
|
|
class InvoiceCompanyFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Associated model.
|
||
|
|
*
|
||
|
|
* @var class-string<\App\Models\InvoiceCompany>
|
||
|
|
*/
|
||
|
|
protected $model = InvoiceCompany::class;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array<string, mixed>
|
||
|
|
*/
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
"name" => fake()->word(),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|