mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
fix seedBoxRecord
This commit is contained in:
@@ -37,6 +37,13 @@ class SeedBoxRecord extends NexusModel
|
||||
);
|
||||
}
|
||||
|
||||
protected function ipRange(): Attribute
|
||||
{
|
||||
return new Attribute(
|
||||
get: fn($value, $attributes) => $attributes['ip'] ?: sprintf('%s ~ %s', $attributes['ip_begin'] ?? '', $attributes['ip_end'] ?? ''),
|
||||
);
|
||||
}
|
||||
|
||||
protected function statusText(): Attribute
|
||||
{
|
||||
return new Attribute(
|
||||
|
||||
Reference in New Issue
Block a user