packages/press/src/Models/WpTermMeta.php
<?php
namespace Moox\Press\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class WpTermMeta extends Model
{
use HasFactory;
protected $fillable = ['term_id', 'meta_key', 'meta_value'];
protected $searchableFields = ['*'];
protected $wpPrefix;
protected $table;
protected $primaryKey = 'meta_id';
public $timestamps = false;
public function __construct(array $attributes = [])
{
parent::__construct($attributes);
$this->wpPrefix = config('press.wordpress_prefix');
$this->table = $this->wpPrefix.'termmeta';
}
}