<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CartPackage extends Model
{
    use HasFactory;

    protected $fillable = [
        'sub_total',
        'discount_amount',
        'discount_percentage',
        'tax_amount',
        'tax_percentage',
        'grand_total',
        'package_id',
        'cart_id',
        'package_price_id'
    ];

    public function package()
    {
       return $this->belongsTo(Package::class, 'package_id', 'id');
    }
}
