25 lines
442 B
PHP
25 lines
442 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Invoice extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'booking_id',
|
|
'total_amount',
|
|
'status',
|
|
'issued_at',
|
|
'due_date',
|
|
'pdf_path',
|
|
];
|
|
|
|
public function booking()
|
|
{
|
|
return $this->belongsTo(\App\Models\Booking::class);
|
|
}
|
|
} |