mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
render searchbox relate icon css
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
11
app/Models/Icon.php
Normal file
11
app/Models/Icon.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
|
||||
class Icon extends NexusModel
|
||||
{
|
||||
protected $table = 'caticons';
|
||||
|
||||
protected $fillable = ['name', 'folder', 'cssfile', 'multilang', 'secondicon', 'designer', 'comment'];
|
||||
}
|
||||
@@ -22,7 +22,4 @@ class SearchBox extends NexusModel
|
||||
return $this->hasMany(SearchBoxField::class, 'searchbox_id');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user