add test batches
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class IpAttempt extends BaseModel
|
||||
{
|
||||
protected $table = 'ip_attempts';
|
||||
@@ -19,9 +21,9 @@ class IpAttempt extends BaseModel
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'attempts' => 'integer',
|
||||
'attempts' => 'integer',
|
||||
'last_attempt_at' => 'datetime',
|
||||
'blocked_until' => 'datetime',
|
||||
'blocked_until' => 'datetime',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -51,7 +53,6 @@ class IpAttempt extends BaseModel
|
||||
public static function insertIpAttempt(array $data): int
|
||||
{
|
||||
$row = static::query()->create($data);
|
||||
|
||||
return (int) $row->id;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user