mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
tag add mode
This commit is contained in:
@@ -7,7 +7,7 @@ class AudioCodec extends NexusModel
|
||||
{
|
||||
protected $table = 'audiocodecs';
|
||||
|
||||
protected $fillable = ['name', 'sort_index'];
|
||||
protected $fillable = ['name', 'sort_index', 'mode',];
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ class Codec extends NexusModel
|
||||
{
|
||||
protected $table = 'codecs';
|
||||
|
||||
protected $fillable = ['name', 'sort_index'];
|
||||
protected $fillable = ['name', 'sort_index', 'mode',];
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ class Media extends NexusModel
|
||||
{
|
||||
protected $table = 'media';
|
||||
|
||||
protected $fillable = ['name', 'sort_index'];
|
||||
protected $fillable = ['name', 'sort_index', 'mode',];
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ class Processing extends NexusModel
|
||||
{
|
||||
protected $table = 'processings';
|
||||
|
||||
protected $fillable = ['name', 'sort_index'];
|
||||
protected $fillable = ['name', 'sort_index', 'mode',];
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace App\Models;
|
||||
|
||||
class Source extends NexusModel
|
||||
{
|
||||
protected $fillable = ['name', 'sort_index'];
|
||||
protected $fillable = ['name', 'sort_index', 'mode',];
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace App\Models;
|
||||
|
||||
class Standard extends NexusModel
|
||||
{
|
||||
protected $fillable = ['name', 'sort_index'];
|
||||
protected $fillable = ['name', 'sort_index', 'mode',];
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
|
||||
+8
-1
@@ -7,7 +7,9 @@ class Tag extends NexusModel
|
||||
public $timestamps = true;
|
||||
|
||||
protected $fillable = [
|
||||
'id', 'name', 'color', 'priority', 'created_at', 'updated_at', 'font_size', 'font_color', 'padding', 'margin', 'border_radius'
|
||||
'id', 'name', 'color', 'priority', 'created_at', 'updated_at',
|
||||
'font_size', 'font_color', 'padding', 'margin', 'border_radius',
|
||||
'mode',
|
||||
];
|
||||
|
||||
const DEFAULTS = [
|
||||
@@ -66,6 +68,11 @@ class Tag extends NexusModel
|
||||
return $this->hasMany(TorrentTag::class, 'tag_id');
|
||||
}
|
||||
|
||||
public function search_box(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(SearchBox::class, 'mode', 'id');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ namespace App\Models;
|
||||
|
||||
class Team extends NexusModel
|
||||
{
|
||||
protected $fillable = ['name', 'sort_index'];
|
||||
protected $fillable = ['name', 'sort_index', 'mode',];
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user