Files
nexusphp/app/Models/TorrentState.php
T

17 lines
318 B
PHP
Raw Normal View History

2022-03-13 21:45:48 +08:00
<?php
namespace App\Models;
class TorrentState extends NexusModel
{
protected $fillable = ['global_sp_state', 'deadline'];
2022-03-13 21:45:48 +08:00
protected $table = 'torrents_state';
public function getGlobalSpStateTextAttribute()
{
return Torrent::$promotionTypes[$this->global_sp_state]['text'] ?? '';
}
2022-03-13 21:45:48 +08:00
}