ldc-web/app/Models/LDCNetwork.php
2022-12-22 10:36:32 +01:00

36 lines
612 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class LDCNetwork extends Model
{
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'cidr' => 'encrypted',
'first_ip' => 'encrypted',
'last_ip' => 'encrypted',
];
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'ldc_networks';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'cidr', 'first_ip', 'last_ip'
];
}