ldc-qrcollector-back/app/Models/UrlHistory.php
2023-03-20 09:19:26 +00:00

32 lines
549 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 array<int, string>
*/
protected $fillable = [
'value',
'start_date',
'end_date'
];
/**
* Get the url that owns the stats.
*
* @return BelongsTo
*/
public function url()
{
return $this->belongsTo(Url::class);
}
}