engelsystem/db/factories/RoomFactory.php

25 lines
514 B
PHP
Raw Normal View History

2021-07-10 00:59:20 +02:00
<?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;
/**
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->unique()->firstName(),
'map_url' => $this->faker->url(),
'description' => $this->faker->text(),
];
}
}