Files
nexusphp/app/Models/TorrentState.php

17 lines
327 B
PHP
Raw Normal View History

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