Initial Commit
This commit is contained in:
21
app/Models/paypal/PayPalModel.php
Normal file
21
app/Models/paypal/PayPalModel.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php namespace App\Models\paypal;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use DB;
|
||||
|
||||
class PayPalModel extends Model {
|
||||
|
||||
function insertToPaypalDetails($data){
|
||||
|
||||
$i = DB::table('payment_details')->insert($data);
|
||||
return $i;
|
||||
}
|
||||
|
||||
|
||||
function insertToOrders($data){
|
||||
|
||||
$i = DB::table('orders')->insert($data);
|
||||
return $i;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user