mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
searchbox model
This commit is contained in:
@@ -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'
|
||||
];
|
||||
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user