feat: implement candidate security honeypots and redesign authenticated layout

This commit is contained in:
jeremy bayse
2026-05-08 11:13:29 +02:00
parent d076fd7d7a
commit 29c274b23b
18 changed files with 789 additions and 200 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class SecurityAlert extends Model
{
protected $fillable = [
'user_id',
'type',
'endpoint',
'payload',
'ip_address',
'user_agent',
];
protected $casts = [
'payload' => 'array',
];
public function user()
{
return $this->belongsTo(User::class);
}
}

View File

@@ -42,6 +42,11 @@ class User extends Authenticatable
return $this->belongsTo(Tenant::class);
}
public function securityAlerts()
{
return $this->hasMany(SecurityAlert::class);
}
/**
* Get the attributes that should be cast.
*