Initial commit
This commit is contained in:
17
app/Models/Transaction.php
Executable file
17
app/Models/Transaction.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Transaction extends Model
|
||||
{
|
||||
//
|
||||
protected $guarded = [
|
||||
'id'
|
||||
];
|
||||
public function merchant()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Merchant', 'merchant_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user