fix moduleseeder

This commit is contained in:
mahdi purHosseini
2024-02-04 12:40:22 +03:30
parent e948ff7606
commit 94b994a49c
4 changed files with 12 additions and 0 deletions
+5
View File
@@ -29,6 +29,11 @@ class Package extends Model
return $this->hasMany( 'App\Label' );
}
public function transfersAll()
{
return $this->morphMany( 'App\Transfer' , "transferable" );
}
public function transfers()
{
return $this->morphMany( 'App\Transfer' , "transferable" )->where( "status" , StatusTypeEnum::APPROVED );