api/database/factories/HuntStepsFactory.php

33 lines
903 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\HuntSteps>
*/
class HuntStepsFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'hunt_id' => \App\Models\Hunts::factory(),
'step_number' => $this->faker->numberBetween(1, 10),
'title' => $this->faker->sentence(2),
'description' => $this->faker->paragraph(),
'hint_text' => $this->faker->sentence(),
'hint_media_url' => $this->faker->imageUrl(),
'latitude' => $this->faker->latitude(),
'longitude' => $this->faker->longitude(),
'radius_m' => 20,
'xp' => 100,
];
}
}