mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
section basic
This commit is contained in:
@@ -18,4 +18,9 @@ class Category extends NexusModel
|
||||
{
|
||||
return $this->belongsTo(Icon::class, 'icon_id');
|
||||
}
|
||||
|
||||
public function search_box()
|
||||
{
|
||||
return $this->belongsTo(SearchBox::class, 'mode', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user