Skip to content

Commit

Permalink
#31 feat: create the metabox model
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jan 12, 2025
1 parent 59c4ea0 commit edc342d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Models/Base/BaseMetaBox.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace CSlant\Blog\Core\Models\Base;

use Botble\Base\Models\MetaBox as BotbleMetaBox;

class BaseMetaBox extends BotbleMetaBox
{
}
46 changes: 46 additions & 0 deletions src/Models/MetaBox.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

namespace CSlant\Blog\Core\Models;

use AllowDynamicProperties;
use Carbon\Carbon;
use CSlant\Blog\Core\Models\Base\BaseMetaBox;
use Illuminate\Database\Eloquent\Builder;

/**
* Class MetaBox
*
* @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 Carbon $created_at
* @property Carbon $updated_at
* @property string $slug
*
* @method static Builder|MetaBox newModelQuery()
* @method static Builder|MetaBox newQuery()
* @method static Builder|MetaBox query()
* @method static Builder|MetaBox first()
* @method static Builder|MetaBox find($id)
* @method static Builder|MetaBox with($relations)
* @method static Builder|MetaBox whereId($value)
* @method static Builder|MetaBox whereIn($column, $values)
* @method static Builder|MetaBox where($column, $operator = null, $value = null, $boolean = 'and')
* @method static MetaBox findOrFail($id)
* @method static MetaBox create($data)
*
* @mixin BaseMetaBox
*/
#[AllowDynamicProperties]
class MetaBox extends BaseMetaBox
{
public static function getBaseModel(): string
{
return 'Botble\Base\Models\MetaBox';
}
}

0 comments on commit edc342d

Please sign in to comment.