forked from alexjustesen/speedtest-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResultFactory.php
More file actions
30 lines (27 loc) · 786 Bytes
/
ResultFactory.php
File metadata and controls
30 lines (27 loc) · 786 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
30
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Result>
*/
class ResultFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'ping' => fake()->randomFloat(2, 0, 100),
'download' => fake()->randomNumber(),
'upload' => fake()->randomNumber(),
'server_id' => fake()->randomNumber(5, true),
'server_host' => fake()->url(),
'server_name' => fake()->word(),
'url' => fake()->url(),
'data' => json_encode(fake()->words()),
];
}
}