mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 00:31:07 +03:30
add my package section
This commit is contained in:
@@ -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" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user