user-list

This commit is contained in:
xiaomlove
2021-04-17 19:01:33 +08:00
parent d734788363
commit 736d42cd5c
18 changed files with 699 additions and 803 deletions
+18 -5
View File
@@ -11,16 +11,29 @@ class User extends Authenticatable
{
use HasFactory, Notifiable;
public $timestamps = false;
const STATUS_CONFIRMED = 'confirmed';
const STATUS_PENDING = 'pending';
/**
* 为数组 / JSON 序列化准备日期。
*
* @param \DateTimeInterface $date
* @return string
*/
protected function serializeDate(\DateTimeInterface $date)
{
return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
}
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
'email',
'password',
];
protected $fillable = ['username', 'email', 'password', 'secret', 'editsecret', 'added'];
/**
* The attributes that should be hidden for arrays.