Skip to content

Commit db8c5d5

Browse files
committed
feat: add new base models
1 parent b67f09d commit db8c5d5

File tree

5 files changed

+68
-1
lines changed

5 files changed

+68
-1
lines changed

src/Models/Base/BaseRole.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace CSlant\Blog\Core\Models\Base;
4+
5+
use Botble\ACL\Models\Role as BotbleRole;
6+
7+
class BaseRole extends BotbleRole
8+
{
9+
}

src/Models/Base/BaseTag.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace CSlant\Blog\Core\Models\Base;
4+
5+
use Botble\Blog\Models\Tag as BotbleTag;
6+
7+
class BaseTag extends BotbleTag
8+
{
9+
}

src/Models/Role.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace CSlant\Blog\Core\Models;
4+
5+
use CSlant\Blog\Core\Models\Base\BaseRole;
6+
7+
/**
8+
* Class Role
9+
* @package CSlant\Blog\Core\Models
10+
*
11+
* @property int $id
12+
* @property string $name
13+
* @property string $slug
14+
* @property string $description
15+
* @property object $permissions
16+
* @property string $status
17+
* @property int $is_default
18+
* @property int $created_by
19+
* @property int $updated_by
20+
* @property string $created_at
21+
* @property string $updated_at
22+
*/
23+
class Role extends BaseRole
24+
{
25+
}

src/Models/Tag.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace CSlant\Blog\Core\Models;
4+
5+
use CSlant\Blog\Core\Models\Base\BaseTag;
6+
7+
/**
8+
* Class Tag
9+
* @package CSlant\Blog\Core\Models
10+
*
11+
* @property int $id
12+
* @property string $name
13+
* @property string $description
14+
* @property string $status
15+
* @property int $author_id
16+
* @property string $author_type
17+
* @property string $created_at
18+
* @property string $updated_at
19+
* @property string $slug
20+
* @mixin BaseTag
21+
*/
22+
class Tag extends BaseTag
23+
{
24+
}

src/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @property string $username
1919
* @property array $permissions
2020
* @property string $avatar_url Property for avatar image url
21-
* @property array $roles
21+
* @property Role $roles
2222
*
2323
*/
2424
class User extends BaseUser

0 commit comments

Comments
 (0)