mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 12:41:05 +03:30
add my package section
This commit is contained in:
+2
-2
@@ -25,11 +25,11 @@
|
||||
|
||||
public function transfers()
|
||||
{
|
||||
return $this->hasMany( 'App\Transfer' )->where( "status" ,"approved" );
|
||||
return $this->morphMany( 'App\Transfer' , "transferable" )->where( "status" ,"approved" );
|
||||
}
|
||||
|
||||
public function transferActive()
|
||||
{
|
||||
return $this->hasOne( 'App\Transfer' )->where( "status" ,"approved" )->whereNull( "to_date" );
|
||||
return $this->morphMany( 'App\Transfer' , "transferable" )->where( "status" ,"approved" )->whereNull( "to_date" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user