33 lines
611 B
PHP
33 lines
611 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class HuntSteps extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $fillable = [
|
|
'hunt_id',
|
|
'step_number',
|
|
'title',
|
|
'description',
|
|
'hint_text',
|
|
'hint_media_url',
|
|
'latitude',
|
|
'longitude',
|
|
'radius_m',
|
|
'xp',
|
|
];
|
|
protected $casts = [
|
|
'latitude' => 'float',
|
|
'longitude' => 'float',
|
|
];
|
|
|
|
public function hunt()
|
|
{
|
|
return $this->belongsTo(Hunts::class, 'hunt_id');
|
|
}
|
|
}
|