2022-01-11 12:39:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
2023-11-30 14:46:08 +01:00
|
|
|
use App\Casts\Ip;
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
2022-01-11 12:39:28 +01:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
2023-08-24 13:00:43 +02:00
|
|
|
/**
|
|
|
|
|
* BannedIp.
|
|
|
|
|
*
|
|
|
|
|
* @property integer $ip IP.
|
|
|
|
|
*/
|
2022-01-11 12:39:28 +01:00
|
|
|
class BannedIp extends Model
|
|
|
|
|
{
|
2023-11-30 14:46:08 +01:00
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Indicates if the model should be timestamped.
|
|
|
|
|
*
|
|
|
|
|
* @var boolean
|
|
|
|
|
*/
|
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
2022-01-11 12:39:28 +01:00
|
|
|
/**
|
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $fillable = ['ip'];
|
|
|
|
|
|
|
|
|
|
/**
|
2023-11-30 14:46:08 +01:00
|
|
|
* The attributes that should be cast.
|
2022-01-11 12:39:28 +01:00
|
|
|
*
|
2023-11-30 14:46:08 +01:00
|
|
|
* @var array
|
2022-01-11 12:39:28 +01:00
|
|
|
*/
|
2023-11-30 14:46:08 +01:00
|
|
|
protected $casts = [
|
|
|
|
|
'ip' => Ip::class
|
|
|
|
|
];
|
2022-01-11 12:39:28 +01:00
|
|
|
}
|