mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 02:47:27 +08:00
exam add duration
This commit is contained in:
+6
-1
@@ -4,7 +4,7 @@ namespace App\Models;
|
||||
|
||||
class Exam extends NexusModel
|
||||
{
|
||||
protected $fillable = ['name', 'description', 'begin', 'end', 'status', 'is_discovered', 'filters', 'indexes'];
|
||||
protected $fillable = ['name', 'description', 'begin', 'end', 'duration', 'status', 'is_discovered', 'filters', 'indexes'];
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
@@ -59,4 +59,9 @@ class Exam extends NexusModel
|
||||
return self::$discovers[$this->is_discovered]['text'] ?? '';
|
||||
}
|
||||
|
||||
public function getDurationTextAttribute(): string
|
||||
{
|
||||
return $this->duration . ' Days';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user