19 lines
378 B
PHP
19 lines
378 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class VerificationCode extends Model
|
||
|
|
{
|
||
|
|
protected $fillable = ['scene', 'channel', 'target', 'code_hash', 'expires_at', 'consumed_at', 'ip'];
|
||
|
|
|
||
|
|
protected function casts(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'expires_at' => 'datetime',
|
||
|
|
'consumed_at' => 'datetime',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|