创建人
This commit is contained in:
@@ -53,4 +53,9 @@ class ArticleModel extends Model
|
||||
* 不允许自动填充模型字段
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
public function creater()
|
||||
{
|
||||
return $this->belongsTo(AdminsModel::class, 'user_id','id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user