blob: 78ddf0ea83edade0415d4d00423f220039297b1e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
namespace Database\Factories;
use App\Models\Connection;
use App\Models\Student;
use App\Models\Company;
use Illuminate\Database\Eloquent\Factories\Factory;
class ConnectionFactory extends Factory
{
protected $model = Connection::class;
public function definition(): array
{
return [
'student_id' => Student::factory(),
'company_id' => Company::factory(),
'status' => $this->faker->boolean(),
];
}
}
|