ldc-gen-game-web/app/Models/BannedIp.php

41 lines
646 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use App\Casts\Ip;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* BannedIp.
*
* @property integer $ip IP.
*/
class BannedIp extends Model
{
use HasFactory;
/**
* Indicates if the model should be timestamped.
*
* @var boolean
*/
public $timestamps = false;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['ip'];
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'ip' => Ip::class
];
}