From 190c84324cb4eceee3e303f5f595731e92f44591 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Mon, 13 Jan 2025 08:33:20 +0700 Subject: [PATCH] #31 fix: update fields in the metabox model --- src/Models/MetaBox.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/Models/MetaBox.php b/src/Models/MetaBox.php index 1092577..1688aeb 100644 --- a/src/Models/MetaBox.php +++ b/src/Models/MetaBox.php @@ -13,14 +13,12 @@ * @package CSlant\Blog\Core\Models * * @property int $id - * @property string $name - * @property string $description - * @property string $status - * @property int $author_id - * @property string $author_type + * @property string $meta_key + * @property string $meta_value + * @property int $reference_id + * @property string $reference_type * @property Carbon $created_at * @property Carbon $updated_at - * @property string $slug * * @method static Builder|MetaBox newModelQuery() * @method static Builder|MetaBox newQuery() @@ -39,6 +37,13 @@ #[AllowDynamicProperties] class MetaBox extends BaseMetaBox { + protected $fillable = [ + 'meta_key', + 'meta_value', + 'reference_id', + 'reference_type', + ]; + public static function getBaseModel(): string { return 'Botble\Base\Models\MetaBox';