<?php

namespace App\Models;

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

class BillService extends Model
{
    use HasFactory;

    protected $fillable = [
        'bill_id', 'name', 'price', 'period', 'discount', 'tax', 'totel'
    ];

    public function bill()
    {
        # code...
        return $this->belongsTo(Bill::class, 'bill_id', 'id');
    }
}
