belongsTo(Transaction::class, 'transaction_id', 'id'); } public function user() { return $this->belongsTo(User::class, 'user_id', 'id'); } }