Added courier outward relationship in plant model file #1458
@@ -271,4 +271,10 @@ class Plant extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(CourierInward::class, 'plant_id', 'id');
|
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