render searchbox relate icon css

This commit is contained in:
xiaomlove
2021-05-28 02:25:08 +08:00
parent 4cde957edb
commit 685a427c13
6 changed files with 38 additions and 10 deletions

View File

@@ -8,4 +8,9 @@ class Category extends NexusModel
protected $table = 'categories';
protected $fillable = ['mode', 'name', 'class_name', 'image', 'sort_index', 'icon_id'];
public function icon(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Icon::class, 'icon_id');
}
}