You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/app/Transaction.php

33 lines
584 B

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Transaction extends Model
{
protected $table = 'gateway_transactions';
public function orders()
{
return $this->hasMany('App\Order', 'transaction_id');
}
public function order()
{
return $this->hasOne('App\Order', 'transaction_id');
}
public function user_transaction()
{
return $this->hasMany('App\UserTransaction', 'transaction_id');
}
public function transaction_logs()
{
return $this->hasMany('App\TransactionLog');
}
}