ldc-qrcollector-back/app/Models/UrlHistory.php
2026-02-12 16:09:21 +01:00

32 lines
607 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UrlHistory extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'value',
'start_date',
'end_date'
];
/**
* Get the url that owns the stats.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Url, $this>
*/
public function url()
{
return $this->belongsTo(Url::class);
}
}