mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 00:21:08 +03:30
add transfer section
This commit is contained in:
@@ -22,4 +22,14 @@
|
||||
{
|
||||
return $this->morphMany( 'App\Media' , 'model' );
|
||||
}
|
||||
|
||||
public function transfers()
|
||||
{
|
||||
return $this->hasMany( 'App\Transfer' )->where( "status" ,"approved" );
|
||||
}
|
||||
|
||||
public function transferActive()
|
||||
{
|
||||
return $this->hasOne( 'App\Transfer' )->where( "status" ,"approved" )->whereNull( "to_date" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user