mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
searchbox label
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user