rest api expand
This commit is contained in:
@ -9,7 +9,6 @@ use kernel\modules\user\models\User;
|
||||
* @property string $content
|
||||
* @property string $title
|
||||
* @property string $slug
|
||||
// * @property string $username
|
||||
* @property int $user_id
|
||||
* @method static where(int[] $array)
|
||||
* @method static find($id)
|
||||
@ -31,7 +30,7 @@ class Post extends Model
|
||||
];
|
||||
}
|
||||
|
||||
public function user()
|
||||
public function user(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
Reference in New Issue
Block a user