27 lines
427 B
PHP
27 lines
427 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ArchiveInfo extends Model
|
|
{
|
|
protected $fillable = [
|
|
'historyable_type',
|
|
'historyable_id',
|
|
'num',
|
|
'post_in',
|
|
'status_id'
|
|
];
|
|
|
|
public function historyable()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
|
|
public function status()
|
|
{
|
|
return $this->belongsTo(ArchiveStatus::class);
|
|
}
|
|
}
|