simedkom/app/Models/MediaMonitoring.php
2025-03-04 16:39:05 +07:00

39 lines
710 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class MediaMonitoring extends Model
{
protected $table = 'media_monitorings';
protected $fillable = [
'code',
'media_name',
'theme',
'title',
'channel',
'writter',
'link',
'news_page',
'quote',
'content',
'influencer',
'keyword',
'image',
'release_date',
'enhancer_id',
];
public function issue(){
return $this->hasOne(IssueManagement::class, 'media_monitoring_id', 'id');
}
public function enhancer()
{
return $this->belongsTo(User::class, 'enhancer_id', 'id');
}
}