29 lines
669 B
PHP
29 lines
669 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CompanyActivity>
|
||
|
|
*/
|
||
|
|
class CompanyActivityFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array<string, mixed>
|
||
|
|
*/
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
"name" => $this->faker->unique()->words(
|
||
|
|
$this->faker->numberBetween(3, 4),
|
||
|
|
true
|
||
|
|
),
|
||
|
|
"color" => $this->faker->hexColor(),
|
||
|
|
"published" => $this->faker->boolean(50),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|