mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 15:31:06 +03:30
fix trasnfer
This commit is contained in:
+6
-1
@@ -9,13 +9,18 @@ class Transfer extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
public $fillable = [ 'user_id' , 'to_date' , 'from_date' , 'status' ];
|
||||
public $fillable = [ 'user_id' , 'to_date' , 'from_date' , 'status' , 'user_transfer_id' ];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo( 'App\User' );
|
||||
}
|
||||
|
||||
public function userTransfer()
|
||||
{
|
||||
return $this->belongsTo( 'App\User', 'user_transfer_id' );
|
||||
}
|
||||
|
||||
public function transferable()
|
||||
{
|
||||
return $this->morphTo();
|
||||
|
||||
Reference in New Issue
Block a user