update CawanganLelong model relation
This commit is contained in:
@@ -32,7 +32,8 @@ class CawanganLelong extends Model
|
||||
}
|
||||
|
||||
public function cawangan()
|
||||
|
||||
{
|
||||
return $this->hasOne(Cawangan::class, 'id');
|
||||
return $this->hasOne(Cawangan::class, 'id', 'caw_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user