Advertisement
fadlyshafa

Untitled

Jan 15th, 2020
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Models;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. class T_pesanan extends Model
  8. {
  9.     protected $table = 't_pesanan';
  10.     public $incrementing = false;
  11.  
  12.     public function customers(){
  13.         return $this->belongsTo('App\Models\Customer','customer','id');
  14.     }
  15.  
  16.     public function pakets(){
  17.         return $this->belongsTo('App\Models\Paket','paket','id');
  18.     }
  19.  
  20.     public function status_pesanans(){
  21.         return $this->belongsTo('App\Models\Status_pesanan','status_pesanan','id');
  22.     }
  23.  
  24.     public function status_pembayarans(){
  25.         return $this->belongsTo('App\Models\Status_pembayaran','status_pembayaran','id');
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement