32 lines
607 B
PHP
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);
|
|
}
|
|
}
|