mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
searchbox label
This commit is contained in:
@@ -6,4 +6,9 @@ namespace App\Models;
|
||||
class AudioCodec extends NexusModel
|
||||
{
|
||||
protected $table = 'audiocodecs';
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
return nexus_trans('searchbox.sub_category_audio_codec_label');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,11 @@ class Category extends NexusModel
|
||||
|
||||
protected $fillable = ['mode', 'name', 'class_name', 'image', 'sort_index', 'icon_id'];
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
return nexus_trans('searchbox.category_label');
|
||||
}
|
||||
|
||||
public function icon(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Icon::class, 'icon_id');
|
||||
|
||||
@@ -6,4 +6,9 @@ namespace App\Models;
|
||||
class Codec extends NexusModel
|
||||
{
|
||||
protected $table = 'codecs';
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
return nexus_trans('searchbox.sub_category_codec_label');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,9 @@ namespace App\Models;
|
||||
class Media extends NexusModel
|
||||
{
|
||||
protected $table = 'media';
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
return nexus_trans('searchbox.sub_category_media_label');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,9 @@ namespace App\Models;
|
||||
class Processing extends NexusModel
|
||||
{
|
||||
protected $table = 'processings';
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
return nexus_trans('searchbox.sub_category_processing_label');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,8 @@ namespace App\Models;
|
||||
|
||||
class Source extends NexusModel
|
||||
{
|
||||
public static function getLabelName()
|
||||
{
|
||||
return nexus_trans('searchbox.sub_category_source_label');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,5 +5,8 @@ namespace App\Models;
|
||||
|
||||
class Standard extends NexusModel
|
||||
{
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
return nexus_trans('searchbox.sub_standard_source_label');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,5 +5,8 @@ namespace App\Models;
|
||||
|
||||
class Team extends NexusModel
|
||||
{
|
||||
|
||||
public static function getLabelName()
|
||||
{
|
||||
return nexus_trans('searchbox.sub_category_team_label');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user