Files
huginn/app/Models/Backlink.php
T

30 lines
550 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Backlink extends Model
{
protected $fillable = [
'site_id',
'site_page_id',
'target_url',
'target_url_hash',
'target_domain',
'anchor_text',
'rel',
];
public function site(): BelongsTo
{
return $this->belongsTo(Site::class);
}
public function sitePage(): BelongsTo
{
return $this->belongsTo(SitePage::class);
}
}