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
30
31
32
|
<?php
namespace Database\Factories;
use App\Models\Company;
use Illuminate\Database\Eloquent\Factories\Factory;
class CompanyFactory extends Factory
{
protected $model = Company::class;
public function definition(): array
{
return [
'name' => $this->faker->name(),
'email' => $this->faker->safeEmail(),
'password' => 'password', // dit hoeft nog niet hier hashed te worden omdat ik de setAttribute functie ga maken die het wel gaat het hashen voor ons
'plan_type' => $this->faker->randomElement(['Basic', 'Standard', 'Premium']),
'job_types' => $this->faker->randomElement(['Stagair', 'Fulltime', 'Studentenjob']),
'job_domain' => $this->faker->randomElement(['Artificial Intelligence', 'Software Development', 'Business Intelligence', 'Netwerken', 'Robotics']),
'booth_location' => $this->faker->randomElement([
'A12', 'B5', 'C7', 'D3', 'E10']),
'photo' => $this->faker->url(),
'speeddate_duration' => $this->faker->numberBetween(1, 30),
'company_description' => $this->faker->paragraph(2),
'job_title' => $this->faker->jobTitle(),
'job_requirements' => $this->faker->paragraph(2),
'job_description' => $this->faker->paragraph(2),
'company_location' => $this->faker->address()
];
}
}
|