simedkom/app/Models/ContentRecapClassification.php
myuqinurrohman 48560b9b3f feat: content recap classification
chore: add classification_id, social_media, and image field
2025-04-15 14:04:32 +07:00

25 lines
497 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ContentRecapClassification extends Model
{
use SoftDeletes;
protected $table = 'content_recap_classifications';
protected $fillable = [
'name',
'slug',
'year',
'description',
'enhancer_id'
];
public function contentRecaps(){
return $this->hasMany(ContentRecap::class, 'classification_id', 'id');
}
}