Files
wticreatorstudio/Modules/Customer/Entities/TransferAccountHistory.php
T
Leonard Biano a32bc98807 Customer Module Update
Transfer account and history
2024-06-20 11:14:13 +08:00

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');
}
}