Files
kartoteka/app/Models/ArchiveInfo.php
2025-12-12 17:10:05 +09:00

29 lines
504 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ArchiveInfo extends Model
{
protected $connection = 'pgsql';
protected $table = 'archive_infos';
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);
}
}