More work to decommission rogue_path
This commit is contained in:
@@ -13,10 +13,28 @@ class System extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
public const default = 'Discovered System';
|
||||
|
||||
protected $casts = [
|
||||
'last_session' => 'datetime:Y-m-d H:i:s'
|
||||
];
|
||||
|
||||
/* STATIC */
|
||||
|
||||
public static function createUnknownSystem(): self
|
||||
{
|
||||
self::unguard();
|
||||
$so = self::firstOrCreate([
|
||||
'name' => self::default,
|
||||
'sysop' => 'Unknown',
|
||||
'location' => '',
|
||||
'active' => TRUE,
|
||||
]);
|
||||
self::reguard();
|
||||
|
||||
return $so;
|
||||
}
|
||||
|
||||
/* SCOPES */
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user