改进 生日显示
This commit is contained in:
parent
6e10903928
commit
802a626419
@ -47,6 +47,14 @@ class User extends Authenticatable
|
|||||||
'birthday_at' => 'date',
|
'birthday_at' => 'date',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $dates = [
|
||||||
|
'email_verified_at',
|
||||||
|
'real_name_verified_at',
|
||||||
|
'banned_at',
|
||||||
|
'birthday_at',
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
protected static function boot()
|
protected static function boot()
|
||||||
{
|
{
|
||||||
parent::boot();
|
parent::boot();
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
@if ($user->real_name_verified_at)
|
@if ($user->real_name_verified_at)
|
||||||
<span class="text-success">实人验证于 {{ $user->real_name_verified_at }} </span>
|
<span class="text-success">实人验证于 {{ $user->real_name_verified_at }} </span>
|
||||||
<br />
|
<br/>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
|
|
||||||
@if ($user->birthday_at)
|
@if ($user->birthday_at)
|
||||||
<p>生日: {{ $user->birthday_at }}</p>
|
<p>生日: {{ $user->birthday_at->format('Y-m-d') }}</p>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user