45 lines
705 B
PHP
45 lines
705 B
PHP
|
|
<?php
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 文件功能:婚姻关系模型
|
|||
|
|
*
|
|||
|
|
* 对应原 ASP 文件:hy / lh 表
|
|||
|
|
*
|
|||
|
|
* @author ChatRoom Laravel
|
|||
|
|
*
|
|||
|
|
* @version 1.0.0
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
namespace App\Models;
|
|||
|
|
|
|||
|
|
use Illuminate\Database\Eloquent\Model;
|
|||
|
|
|
|||
|
|
class Marriage extends Model
|
|||
|
|
{
|
|||
|
|
/**
|
|||
|
|
* The attributes that are mass assignable.
|
|||
|
|
*
|
|||
|
|
* @var array<int, string>
|
|||
|
|
*/
|
|||
|
|
protected $fillable = [
|
|||
|
|
'hyname',
|
|||
|
|
'hyname1',
|
|||
|
|
'hytime',
|
|||
|
|
'hygb',
|
|||
|
|
'hyjb',
|
|||
|
|
'i',
|
|||
|
|
];
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Get the attributes that should be cast.
|
|||
|
|
*
|
|||
|
|
* @return array<string, string>
|
|||
|
|
*/
|
|||
|
|
protected function casts(): array
|
|||
|
|
{
|
|||
|
|
return [
|
|||
|
|
'hytime' => 'datetime',
|
|||
|
|
];
|
|||
|
|
}
|
|||
|
|
}
|