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