ldc-web/app/Models/LDCNetwork.php

37 lines
612 B
PHP
Raw Permalink Normal View History

2022-09-21 11:17:58 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class LDCNetwork extends Model
{
2022-12-22 10:36:32 +01:00
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'cidr' => 'encrypted',
'first_ip' => 'encrypted',
'last_ip' => 'encrypted',
];
2022-09-21 11:17:58 +00:00
/**
* 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'
];
}