searchbox model

This commit is contained in:
xiaomlove
2021-05-20 17:14:38 +08:00
parent 13097fa711
commit 51b3582090
5 changed files with 37 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace App\Models;
class Searchbox extends NexusModel
{
protected $table = 'searchbox';
protected $fillable = [
'name', 'catsperrow', 'catpadding', 'showsubcat',
'showsource', 'showmedium', 'showcodec', 'showstandard', 'showprocessing', 'showteam', 'showaudiocodec',
'custom_fields', 'custom_fields_display_name', 'custom_fields_display'
];
}
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace App\Models;
class SearchboxField extends NexusModel
{
protected $table = 'searchbox_fields';
protected $fillable = ['searchbox_id', 'field_type', 'field_id', ];
public function searchbox()
{
return $this->belongsTo(Searchbox::class, 'searchbox_id');
}
}