mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-30 20:16:46 -04:00
24 lines
519 B
PHP
24 lines
519 B
PHP
<?php
|
|
|
|
namespace Modules\Customer\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use App\Models\User;
|
|
|
|
class TransferAccountHistory extends Model
|
|
{
|
|
protected $guarded = ["id"];
|
|
|
|
public function transferBy(){
|
|
return $this->belongsTo(User::class, 'transfer_by', 'id');
|
|
}
|
|
|
|
public function transferFrom(){
|
|
return $this->belongsTo(User::class, 'transfer_from', 'id');
|
|
}
|
|
|
|
public function transferTo(){
|
|
return $this->belongsTo(User::class, 'transfer_to', 'id');
|
|
}
|
|
}
|