-
-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathLeadFactory.php
More file actions
29 lines (26 loc) · 678 Bytes
/
LeadFactory.php
File metadata and controls
29 lines (26 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace Database\Factories;
use App\Models\Lead;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Lead>
*/
class LeadFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => fake()->name(),
'email' => fake()->safeEmail(),
'company' => fake()->company(),
'description' => fake()->paragraphs(2, true),
'budget' => fake()->optional()->randomElement(array_keys(Lead::BUDGETS)),
'ip_address' => fake()->ipv4(),
];
}
}