text align tag + update/edit get desc + rating improve

This commit is contained in:
xiaomlove
2022-04-14 00:52:28 +08:00
parent d2a87ccda0
commit 9759c09320
44 changed files with 541 additions and 122 deletions

View File

@@ -4,9 +4,19 @@ namespace App\Models;
class Language extends NexusModel
{
const DEFAULT_ENABLED = ['en', 'chs', 'cht'];
protected $table = 'language';
protected $fillable = [
'lang_name', 'site_lang_folder',
];
public static function listEnabled($withoutCache = false)
{
if ($withoutCache) {
return Setting::getFromDb('main.site_language_enabled', self::DEFAULT_ENABLED);
}
return Setting::get('main.site_language_enabled', self::DEFAULT_ENABLED);
}
}

View File

@@ -25,7 +25,8 @@ class Torrent extends NexusModel
const BANNED_NO = 'no';
protected $casts = [
'added' => 'datetime'
'added' => 'datetime',
'pt_gen' => 'array',
];
public static $commentFields = [