mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-06-19 03:57:29 +08:00
searchbox model
This commit is contained in:
@@ -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