Merge pull request 'Added courier outward relationship in plant model file' (#1458) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 25s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 25s
Reviewed-on: #1458
This commit was merged in pull request #1458.
This commit is contained in:
@@ -271,4 +271,10 @@ class Plant extends Model
|
||||
{
|
||||
return $this->hasMany(CourierInward::class, 'plant_id', 'id');
|
||||
}
|
||||
|
||||
public function courierOutwards()
|
||||
{
|
||||
return $this->hasMany(CourierOutward::class, 'plant_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user