2021-07-10 00:59:20 +02:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-07-10 00:59:20 +02:00
|
|
|
namespace Database\Factories\Engelsystem\Models;
|
|
|
|
|
2023-10-15 19:25:55 +02:00
|
|
|
use Engelsystem\Models\Location;
|
2021-07-10 00:59:20 +02:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
2023-10-15 19:25:55 +02:00
|
|
|
class LocationFactory extends Factory
|
2021-07-10 00:59:20 +02:00
|
|
|
{
|
|
|
|
/** @var string */
|
2023-10-15 19:25:55 +02:00
|
|
|
protected $model = Location::class; // phpcs:ignore
|
2021-07-10 00:59:20 +02:00
|
|
|
|
2022-12-14 19:15:20 +01:00
|
|
|
public function definition(): array
|
2021-07-10 00:59:20 +02:00
|
|
|
{
|
|
|
|
return [
|
|
|
|
'name' => $this->faker->unique()->firstName(),
|
|
|
|
'map_url' => $this->faker->url(),
|
|
|
|
'description' => $this->faker->text(),
|
2023-10-24 23:00:04 +02:00
|
|
|
'dect' => $this->faker->optional()->numberBetween(1000, 9999),
|
2021-07-10 00:59:20 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|