34 lines
739 B
PHP
34 lines
739 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.
|
|
*
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\InvoiceCompany>
|
|
*/
|
|
class InvoiceCompanyFactory extends Factory
|
|
{
|
|
/**
|
|
* Associated model.
|
|
*
|
|
* @var class-string<\App\Models\InvoiceCompany>
|
|
*/
|
|
#[\Override]
|
|
protected $model = InvoiceCompany::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
"name" => fake()->words(3, true),
|
|
];
|
|
}
|
|
}
|