add my package section

This commit is contained in:
mahdi purHosseini
2023-10-23 13:02:51 +03:30
parent 19d7439781
commit 644adb6528
11 changed files with 378 additions and 90 deletions
+9
View File
@@ -23,4 +23,13 @@
return $this->hasMany( 'App\Label' );
}
public function transfers()
{
return $this->morphMany( 'App\Transfer' , "transferable" )->where( "status" ,"approved" );
}
public function transferActive()
{
return $this->morphMany( 'App\Transfer' , "transferable" )->where( "status" ,"approved" )->whereNull( "to_date" );
}
}