Files
nexusphp/app/Models/TorrentState.php
2022-08-26 17:35:49 +08:00

17 lines
327 B
PHP

<?php
namespace App\Models;
class TorrentState extends NexusModel
{
protected $fillable = ['global_sp_state', 'deadline', 'begin'];
protected $table = 'torrents_state';
public function getGlobalSpStateTextAttribute()
{
return Torrent::$promotionTypes[$this->global_sp_state]['text'] ?? '';
}
}