33 lines
671 B
PHP
33 lines
671 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class ContentRecap extends Model
|
|
{
|
|
use SoftDeletes;
|
|
protected $table = 'content_recaps';
|
|
|
|
protected $fillable = [
|
|
'title',
|
|
'posted_date',
|
|
'channel',
|
|
'link',
|
|
'classification_id',
|
|
'social_media',
|
|
'image',
|
|
'enhancer_id',
|
|
];
|
|
|
|
public function enhancer()
|
|
{
|
|
return $this->belongsTo(User::class, 'enhancer_id', 'id');
|
|
}
|
|
|
|
public function classification(){
|
|
return $this->belongsTo(ContentRecapClassification::class, 'classification_id', 'id');
|
|
}
|
|
}
|