Fixing some examples
This commit is contained in:
@@ -9,6 +9,6 @@ class Department extends Model
|
||||
{
|
||||
public function group() : BelongsTo
|
||||
{
|
||||
return $this->belongsTo(DepartmentGroup::class, 'id');
|
||||
return $this->belongsTo(DepartmentGroup::class, 'department_group_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user