engelsystem/db/factories/LocationFactory.php

25 lines
620 B
PHP
Raw Permalink Normal View History

2021-07-10 00:59:20 +02:00
<?php
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
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(),
'dect' => $this->faker->optional()->numberBetween(1000, 9999),
2021-07-10 00:59:20 +02:00
];
}
}