mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 13:32:41 +08:00
tag add mode
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user