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