2023-03-28 14:37:49 +00:00
|
|
|
<?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.
|
|
|
|
|
*
|
2026-02-12 16:09:21 +01:00
|
|
|
* @var list<string>
|
2023-03-28 14:37:49 +00:00
|
|
|
*/
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'value',
|
|
|
|
|
'start_date',
|
|
|
|
|
'end_date'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the url that owns the stats.
|
|
|
|
|
*
|
2026-02-12 16:09:21 +01:00
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Url, $this>
|
2023-03-28 14:37:49 +00:00
|
|
|
*/
|
|
|
|
|
public function url()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Url::class);
|
|
|
|
|
}
|
|
|
|
|
}
|