25 lines
497 B
PHP
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');
|
|
}
|
|
}
|