Skip to content

Commit

Permalink
fix: update docblock for models
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Dec 7, 2024
1 parent db8c5d5 commit c61337f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Models/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
namespace CSlant\Blog\Core\Models;

use CSlant\Blog\Core\Models\Base\BaseRole;
use Illuminate\Database\Eloquent\Builder;

/**
* Class Role
*
* @package CSlant\Blog\Core\Models
*
* @property int $id
Expand All @@ -19,6 +21,13 @@
* @property int $updated_by
* @property string $created_at
* @property string $updated_at
*
* @method static Builder|Role newModelQuery()
* @method static Builder|Role newQuery()
* @method static Builder|Role query()
* @method static Builder|Role first()
* @method static Builder|Role find()
* @method static Builder|Role whereCreatedAt($value)
*/
class Role extends BaseRole
{
Expand Down
9 changes: 9 additions & 0 deletions src/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
namespace CSlant\Blog\Core\Models;

use CSlant\Blog\Core\Models\Base\BaseUser;
use Illuminate\Database\Eloquent\Builder;

/**
* Class User
*
* @package CSlant\Blog\Core\Models
*
* @property int $id
Expand All @@ -20,6 +22,13 @@
* @property string $avatar_url Property for avatar image url
* @property Role $roles
*
* @method static Builder|User newModelQuery()
* @method static Builder|User newQuery()
* @method static Builder|User query()
* @method static Builder|User first()
* @method static Builder|User find()
* @method static Builder|User whereCreatedAt($value)
*
*/
class User extends BaseUser
{
Expand Down

0 comments on commit c61337f

Please sign in to comment.