feat: Netzwerk-Segmentverwaltung, Dashboard, globale Suche v0.6.0

This commit is contained in:
2026-07-01 18:46:49 +02:00
parent 402537805d
commit 9fa20af87a
17 changed files with 1006 additions and 60 deletions
+6 -1
View File
@@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
class NetworkScan extends Model
{
protected $fillable = [
'subnet', 'source', 'scanner', 'total_hosts',
'segment_id', 'subnet', 'source', 'scanner', 'total_hosts',
'online_hosts', 'new_devices', 'changed_devices',
'notes', 'created_by',
];
@@ -27,4 +27,9 @@ class NetworkScan extends Model
{
return $this->belongsTo(User::class, 'created_by');
}
public function segment(): BelongsTo
{
return $this->belongsTo(NetworkSegment::class, 'segment_id');
}
}