mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 17:01:07 +03:30
add transfer section
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class Transfer extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
public $fillable = [ 'user_id' , 'item_id' , 'to_date' , 'from_date' , 'status' ];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo( 'App\User' );
|
||||
}
|
||||
|
||||
public function item()
|
||||
{
|
||||
return $this->belongsTo( 'App\Item' );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user