Skip to content

Commit

Permalink
feat: add new base models
Browse files Browse the repository at this point in the history
tanhongit committed Dec 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 56c4902 commit b67f09d
Showing 3 changed files with 43 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/Models/Base/BasePost.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace CSlant\Blog\Core\Models\Base;

use Botble\Blog\Models\Post as BotblePost;

class BasePost extends BotblePost
{
}
2 changes: 1 addition & 1 deletion src/Models/Category.php
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
* @property string $updated_at
* @property string $slug
* @property string $url
*
* @mixin BaseCategory
*/
class Category extends BaseCategory
{
33 changes: 33 additions & 0 deletions src/Models/Post.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

namespace CSlant\Blog\Core\Models;

use CSlant\Blog\Core\Models\Base\BasePost;

/**
* Class Post
* @package CSlant\Blog\Core\Models
*
* @property int $id
* @property string $name
* @property string $description
* @property string $content
* @property string $status
* @property int $author_id
* @property string $author_type
* @property int $is_featured
* @property int $view
* @property string $format_type
* @property string $created_at
* @property string $updated_at
* @property string $slug
* @property string $url
* @property array $tags
* @property array $categories
* @property string $image
* @property string $author
* @mixin BasePost
*/
class Post extends BasePost
{
}

0 comments on commit b67f09d

Please sign in to comment.