25 lines
460 B
PHP
25 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class AiringProofTheme extends Model
|
|
{
|
|
use SoftDeletes;
|
|
protected $table = 'airing_proof_themes';
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'slug',
|
|
'year',
|
|
'description',
|
|
'enhancer_id'
|
|
];
|
|
|
|
public function enhancer(){
|
|
return $this->belongsTo(User::class, 'enhancer_id', 'id');
|
|
}
|
|
}
|