38 lines
666 B
PHP
38 lines
666 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use App\Enums\CaptchaLogType;
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
final class CaptchaLog extends Model
|
||
|
{
|
||
|
use HasFactory;
|
||
|
|
||
|
protected $table = 'captcha_logs';
|
||
|
|
||
|
const UPDATED_AT = null;
|
||
|
|
||
|
/**
|
||
|
* The attributes that are mass assignable.
|
||
|
*
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $fillable = [
|
||
|
'type',
|
||
|
'ip',
|
||
|
'user_agent',
|
||
|
'referer',
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* The attributes that should be cast.
|
||
|
*
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $casts = [
|
||
|
'type' => CaptchaLogType::class,
|
||
|
];
|
||
|
}
|