ldc-web/app/Models/Network.php

38 lines
648 B
PHP
Raw Normal View History

2022-09-21 11:17:58 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
2023-09-22 09:59:11 +02:00
class Network extends Model
2022-09-21 11:17:58 +00:00
{
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',
2023-09-22 09:59:11 +02:00
'comments' => 'string'
2022-12-22 10:36:32 +01:00
];
2022-09-21 11:17:58 +00:00
/**
* The table associated with the model.
*
* @var string
*/
2023-09-22 09:59:11 +02:00
protected $table = 'networks';
2022-09-21 11:17:58 +00:00
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
2023-09-22 09:59:11 +02:00
'cidr', 'first_ip', 'last_ip', 'comments'
2022-09-21 11:17:58 +00:00
];
}