12345678910111213141516 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class DiscountWithOrder extends Model
- {
- protected $table = "tb_dm_order_with_discount";
- protected $guarded = [];
- public function discounts(){
- $a = $this->belongsTo('App\Models\Discounts','discount_id','id');
- return $a;
- }
- }
|