fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
+4 -5
View File
@@ -2,8 +2,6 @@
namespace App\Models;
use App\Models\BaseModel;
class IpAttempt extends BaseModel
{
protected $table = 'ip_attempts';
@@ -21,9 +19,9 @@ class IpAttempt extends BaseModel
];
protected $casts = [
'attempts' => 'integer',
'attempts' => 'integer',
'last_attempt_at' => 'datetime',
'blocked_until' => 'datetime',
'blocked_until' => 'datetime',
];
/**
@@ -53,6 +51,7 @@ class IpAttempt extends BaseModel
public static function insertIpAttempt(array $data): int
{
$row = static::query()->create($data);
return (int) $row->id;
}
}
}