incr/app/Models/Milestone.php

29 lines
513 B
PHP
Raw Normal View History

2025-07-13 00:18:45 +02:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
2025-07-13 00:18:45 +02:00
/**
* @method static create(array $array)
* @method static orderBy(string $string)
*/
class Milestone extends Model
{
protected $fillable = [
'tracker_id',
2025-07-13 00:18:45 +02:00
'target',
'description',
];
protected $casts = [
'target' => 'integer',
];
public function tracker(): BelongsTo
{
return $this->belongsTo(Tracker::class);
}
2025-07-13 00:18:45 +02:00
}