engelsystem/db/factories/LocationFactory.php

24 lines
538 B
PHP
Raw 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(),
];
}
}