22 lines
500 B
PHP
22 lines
500 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Factories\Engelsystem\Models;
|
||
|
|
||
|
use Engelsystem\Models\Room;
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
||
|
class RoomFactory extends Factory
|
||
|
{
|
||
|
/** @var string */
|
||
|
protected $model = Room::class; // phpcs:ignore
|
||
|
|
||
|
public function definition(): array
|
||
|
{
|
||
|
return [
|
||
|
'name' => $this->faker->unique()->firstName(),
|
||
|
'map_url' => $this->faker->url(),
|
||
|
'description' => $this->faker->text(),
|
||
|
];
|
||
|
}
|
||
|
}
|