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