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