remove codeigniter
This commit is contained in:
@@ -8,7 +8,7 @@ class IpAttempt extends BaseModel
|
||||
{
|
||||
protected $table = 'ip_attempts';
|
||||
|
||||
// ✅ CI: useTimestamps = true (created_at/updated_at)
|
||||
// ✅ legacy: useTimestamps = true (created_at/updated_at)
|
||||
public $timestamps = true;
|
||||
|
||||
protected $fillable = [
|
||||
@@ -27,7 +27,7 @@ class IpAttempt extends BaseModel
|
||||
];
|
||||
|
||||
/**
|
||||
* Equivalent of CI getAttemptByIp()
|
||||
* Equivalent of legacy getAttemptByIp()
|
||||
*/
|
||||
public static function getAttemptByIp(string $ip): ?self
|
||||
{
|
||||
@@ -37,7 +37,7 @@ class IpAttempt extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent of CI updateIpAttempt()
|
||||
* Equivalent of legacy updateIpAttempt()
|
||||
*/
|
||||
public static function updateIpAttempt(string $ip, array $data): bool
|
||||
{
|
||||
@@ -47,7 +47,7 @@ class IpAttempt extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent of CI insertIpAttempt()
|
||||
* Equivalent of legacy insertIpAttempt()
|
||||
* Returns inserted id.
|
||||
*/
|
||||
public static function insertIpAttempt(array $data): int
|
||||
|
||||
Reference in New Issue
Block a user