Files
chatroom/app/Models/FriendCall.php

45 lines
728 B
PHP
Raw Normal View History

<?php
/**
* 文件功能:好友呼叫模型
*
* 对应原 ASP 文件calls
*
* @author ChatRoom Laravel
*
* @version 1.0.0
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class FriendCall extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'who',
'towho',
'callmess',
'calltime',
'read',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'calltime' => 'datetime',
'read' => 'boolean',
];
}
}