Initial commit
This commit is contained in:
25
app/Models/MerchantTopUp.php
Normal file
25
app/Models/MerchantTopUp.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MerchantTopUp extends Model
|
||||
{
|
||||
public $table = "merchant_top_ups";
|
||||
|
||||
protected $guarded = ['id'];
|
||||
|
||||
public function merchantInfo()
|
||||
{
|
||||
return $this->hasOne('App\Models\Merchant', 'id', 'merchant_id');
|
||||
}
|
||||
public function orgUserInfo()
|
||||
{
|
||||
return $this->hasOne('App\Models\OrgUser', 'id', 'org_user_id');
|
||||
}
|
||||
public function orgInfo()
|
||||
{
|
||||
return $this->hasOne('App\Models\Organisation', 'id', 'org_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user