Multi-user OSINT investigation tool with owner-controlled per-user and per-group access grants. Includes Sherlock, theHarvester, crt.sh, WHOIS, and ip-api.com collectors wired through a pluggable Runner/queue pipeline, investigation search, and printable/CSV/JSON reporting. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
25 lines
542 B
PHP
25 lines
542 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
#[Fillable(['key', 'name', 'description', 'target_types', 'runner', 'enabled'])]
|
|
class Source extends Model
|
|
{
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'target_types' => 'array',
|
|
'enabled' => 'boolean',
|
|
];
|
|
}
|
|
|
|
public function findings(): HasMany
|
|
{
|
|
return $this->hasMany(Finding::class);
|
|
}
|
|
}
|