Files
DatBrowser/app/Models/InstagramRepost.php
Matthias Guillitte 7f50822692
Some checks failed
Push image to registry / build-image (push) Failing after 6m44s
Instagram repost job
2025-06-03 19:10:34 +02:00

27 lines
484 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class InstagramRepost extends Model
{
protected $table = 'instagram_reposts';
protected $fillable = [
'reel_id',
'reposted',
'account_id',
];
public function account()
{
return $this->belongsTo(InstagramAccount::class, 'account_id');
}
public function getUrl(): string
{
return "https://www.instagram.com/reel/{$this->reel_id}/";
}
}